Esau said: How long shall I keep troubling my brother? He arose and went off, as it is said (Gen. 36:6): "Then Esau took his wives, etc." What did Jacob do? Once his children and his flocks had crossed over into the Land of Israel, he arose and sold all that he had brought in his hand from outside the Land, and he made it into ingots of gold. He said to Esau: You have a portion together with me in the Cave of Machpelah. What do you prefer — to take these ingots of gold, or to share with me? Esau began to say: What do I want with this cave? It is this gold that I want. And how do we know that Jacob sold everything he had brought from outside the Land and that Esau took it? For thus said Joseph (Gen. 50:5): "My father made me swear, saying: Behold, I am about to die; in my grave which I dug for myself." Rabbi Huna the Priest, son of Rabbi Abin, said: When Jacob wished to come to the Land of Israel, what is written (Gen. 31:18)? "And he drove away all his livestock." And when he wished to go down to Egypt, what is written (Gen. 46:6)? "And they took their livestock and all their possessions which they had acquired in the land of Canaan." But that which he had brought from Aram-Naharaim — where is it? Rather, from here you learn that he sold it and gave it to Esau. And should you say that something was thereby lacking? Rather, the Holy One, blessed be He, filled up his lack and restored everything to him at once, as it is said (Gen. 33:18): "And Jacob came whole."
Jacob Buys Out Esau's Share in the Cave of Machpelah with Gold
Midrash Tanchuma Buber, Vayishlach 11:3
אמר עשו עד מתי אהא מטריח על אחי, עמד והלך לו, שנאמר ויקח עשו את נשיו וגו' (שם לו ו). מה עשה יעקב כיון שהעבירו בניו וצאנו לארץ ישראל עמד ומכר כל מה שהביא בידו מחוצה לארץ, ועשאו כריות של זהב, אמר לעשו יש לך חלק עמי במערת המכפלה, ומה אתה מבקש ליקח כריות אלו של זהב, או לחלוק עמי, התחיל עשו אמר מה אני מבקש מן המערה הזו, זהב זה אני מבקש, ומנין שמכר יעקב כל מה שהביא מחוצה לארץ ונטלו עשו, שכן יוסף אמר, אבי השביעני לאמר הנה אנכי מת בקבר אשר כריתי לי (שם נ ה), אמר ר' הונא הכהן ב"ר אבין כשבקש יעקב לבא לארץ ישראל מה כתיב וינהג את כל מקנהו (שם לא יח), וכשבקש לירד למצרים מה כתיב ויקחו את מקניהם ואת כל רכושם אשר רכשו בארץ כנען (שם מו ז), ומה שהביא מארם נהרים היכן הם, אלא מכאן אתה למד שמכרן ונתנן לעשו, ותאמר שחסר דבר, אלא מלא הקב"ה חסרונו והחזיר לו מיד הכל, שנאמר ויבא יעקב שלם.