Genesis 47:29-31

ISV(i) 29 As the time approached for Israel to die, he called for his son Joseph and addressed him. “Please,” he asked, “if you’re happy with me, make a solemn promise that you’ll treat me fairly and kindly by not burying me in Egypt. 30 Instead, when I’ve died, as my ancestors have, you are to carry me out of Egypt and bury me in their tomb.”
“I’ll do what you’ve asked,” Joseph replied.
31 “Promise me,” Israel insisted. So Joseph promised. Then Israel collapsed on his bed.