 Rav Judah taught in the name of Rav that upon the death of Moses, God directed Joshua in to start a war to distract the Israelites' attention from the leadership transition.Rav Judah reported in the name of Rav that when Moses was dying, he invited Joshua to ask him about any doubts that Joshua might have.Joshua replied by asking Moses whether Joshua had ever left Moses for an hour and gone elsewhere.