Genesis 47:29-31 English Revised Version (ERV)

29. And the time drew near that Israel must die: and he called his son Joseph, and said unto him, If now I have found grace in thy sight, put, I pray thee, thy hand under my thigh, and deal kindly and truly with me; bury me not, I pray thee, in Egypt:

30. but when I sleep with my fathers, thou shalt carry me out of Egypt, and bury me in their buryingplace. And he said, I will do as thou hast said.

31. And he said, Swear unto me: and he sware unto him. And Israel bowed himself upon the bed's head.

Genesis 47