Moses took the bones of Joseph with him because Joseph had made the Israelites swear an oath. He had said, "God will surely come to your aid, and then you must carry my bones up with you from this place."