Moses now said to himself: "If God has determined that I may not enter the land of Israel, and I am thus to lose the reward for the many precepts that may be observed only in the Holy Land, for no other reason than because the time has come for my disciple Joshua to go to the front of Israel and lead them into the land, then were it better for me to remain alive, to enter the land, and relinquish to Joshua the leadership of the people." What now did Moses do? From the first day of Shebat to the sixth of Adar, the day before his death, he went and served Joshua from morning until evening, as a disciple his mater. These thirty-six days during which Moses served his former disciple corresponded to the equal number of years during which he had been served by Joshua.
Trial of Moses of Joshua
Legends of the Jews 6:154