 Noting that and both use the same expression "at that time" (, "ba'eit ha-hiv"), a Midrash deduced that the events of the two verses took place at the same time.Thus Rav Huna taught that as soon as God told Moses to hand over his office to Joshua, Moses immediately began to pray to be permitted to enter the Promised Land.The Midrash compared Moses to a governor who could be sure that the king would confirm whatever orders he gave so long as he retained his office.