Moses then thought: "I know that if I were now to go into battle against the Midianites, the people would declare that I wished for my own death, since God made it dependent upon the punishing of the Midianites, and my life is assured me as long as ever I wish to put it off." This consideration did not, however, determine him, for, fully aware that his enterprise of war would hasten his death, he nevertheless set about the execution of this war as soon as God commanded him.
Wherever the execution of a Divine command, or the possibility of furthering Israel's cause was concerned, Moses gave no thought to himself, even though it touched his life. Not so Joshua. When he came to Canaan, he thought: "If I wage an incessant war upon the Canaanites, I shall certainly die as soon as I shall have conquered them, for Moses also died immediately after his conquest of Midian." He therefore proceeded very slowly in his conquest of the Holy Land, so that he might be sure of a long life.
But, "however many thought there may be in man's heart, God's words prevails," and whereas Joshua hoped to become very aged, he died ten years before the time God had originally allotted to him, for, although he would otherwise have attained his master's age, he now died at the age of a hundred and ten.