Moses took the body of Joseph with him, as Joseph had made the Israelites solemnly promise to do. Joseph had said, "When God rescues you, you must carry my body with you from this place." 1
References for Exodus 13:19
13.19 Gn 50.25; Js 24.32.