Read this passage and open each verse for the full verse feed and commentary tools.
29The time drew near that Israel must die, and he called his son Joseph, and said to him, "If now I have found favor in your sight, please put your hand under my thigh, and deal kindly and truly with me. Please don`t bury me in Egypt, 30but when I sleep with my fathers, you shall carry me out of Egypt, and bury me in their burying place." He said, "I will do as you have said."
Genesis 47:29-30 (WEB)