Generally speaking, land transfer, as opposed to population transfer, is legal under both International and Israeli law. The Israeli precedent was exemplified in 1979 when Israel agreed to transfer the Sinai Desert in exchange for peace with Egypt.
Land transfers are typically legal according to both international and Israeli laws. An instance of this can be seen in 1979, when Israel agreed to swap the Sinai Desert for peace with Egypt.