It was because Joseph trusted God that, when he was about to die in Egypt, he anticipated the time when the Israelis would leave Egypt; and he instructed that his people should carry his bones with them when they ◄left Egypt/returned to Canaan►.