"And Isaac and Ishmael his sons buried him" (Genesis 25:9). This teaches that Ishmael repented, for Ishmael was the firstborn, yet he let Isaac go before him, because he knew of him that he was more righteous than himself. But Esau did not repent, for it does not say, "And Esau and Jacob his sons buried him."
Why Ishmael Let Isaac Lead at Abraham's Burial
Midrash Aggadah, Genesis 25:9
ויקברו אותו יצחק וישמעאל בניו. מלמד שעשה ישמעאל תשובה, שהרי היה ישמעאל בכור והנהיג יצחק לפניו, לפי שהיה יודע בו שהוא צדיק ממנו, אבל עשו לא עשה תשובה, שהרי לא נאמר ויקברו אותו עשו ויעקב בניו: