... Said the Holy One [to Avram]: Up until now you have not been whole beforeme, but circumcise the flesh of your foreskin ‘and be whole/tamim’ [Gn 17:1]. The field that Abraham bought from the children of Chet etc --- R Tanchuma said: from the burial of Sarah to the burial of Abraham was 38 years...... it comes to teach you that all who gave kindness with Sarah merited to give kindness with Abraham. R Shmuel bar Nachman said Shem and Ever were proceeding before [Abraham's] deathbed and the saw which place to direct Abraham our father and they buried him in his [specific] compartment. And it was after death of Abraham, Elokim blessed Isaac.
Abraham's Transgression of Sarah
Yalkut Shimoni on Torah 110:8
(בראשית כה י) הַשָּׂדֶה אֲשֶׁר קָנָה אַבְרָהָם מֵאֵת בְּנֵי חֵת וְגוֹ', אָמַר רַבִּי תַּנְחוּמָא, וַהֲלֹא מִקְּבוּרָתָהּ שֶׁל שָׂרָה לִקְבוּרָתוֹ שֶׁל אַבְרָהָם אָבִינוּ שְׁלֹשִׁים וּשְׁמֹנֶה שָׁנָה, וְהָכָא אַתְּ אָמַר שָׁמָּה קֻבַּר אַבְרָהָם וְשָׂרָה, אֶלָּא בָּא לְלַמְּדֶךָ שֶׁכָּל מִי שֶׁגָּמַל חֶסֶד עִם שָׂרָה זָכָה לִגְמֹל חֶסֶד עִם אַבְרָהָם אָמַר רַבִּי שְׁמוּאֵל בַּר נַחְמָן שֵׁם וְעֵבֶר הָיוּ מְהַלְּכִין לִפְנֵי מִטָּתוֹ, וְרָאוּ אֵיזֶה מָקוֹם מֻפְנֶה לְאָבִינוּ אַבְרָהָם, וְקָבְרוּ אוֹתוֹ בִּדְיוֹטְרִין שֶׁלּוֹ. (בראשית כה יא) וַיְהִי אַחֲרֵי מוֹת אַבְרָהָם וַיְבָרֶךְ אֱלֹהִים אֶת יִצְחָק, (כָּתוּב בְּרֶמֶז יג ולג).