It says in Masechet Sotah 5a:
דָרַש רַב עֲוְִירָא זִמְנִין אָמַר לָהּ מִשְּמֵיהּ דְרַב אַסִּי וְְזִמְנִין אָמַר לָהּ מִשְּמֵיהּ דְרַב אַמִי כָל אָדָם שֶיֵּש בוֹ גַּסּוּת הָרוּחַ לַסּוֹף מִתְמַעֵט שֶנֶּאֱמַר רוֹמוּ מְעַט וְְשֶמָא תּאֹמַר יֶשְנוֹ בָעוֹלָם ת״ל וְְאֵינֶנּוּ וְְאִם חוֹזֵר בוֹ נֶאֱסָף בִזְמַנּוֹ כְאַבְרָהָם אָבִינוּ
Rav Avira expounded, sometimes he said it in the name of Rabbi Assi and at other times in the name of Rabbi Ami: Every man in who is haughtiness of spirit will in the end be reduced in rank, as it is said, 'They are exalted, there will be reduction of status;' [Iyov 24:24] and lest you think that they remain in existence, the text continues, 'And they are gone.' But if he changes and becomes humble, he will be gathered to his fathers in his due time like our father Avraham
How can we say that a Ba'al Ga'avah who does teshuva will die at his time like Avraham Avinu if Rashi says Avraham Avinu didn't even die in his proper time?
מן האדם האדם. עֲדָשִׁים אֲדֻמּוֹת, וְאוֹתוֹ הַיּוֹם מֵת אַבְרָהָם, שֶׁלֹּא יִרְאֶה אֶת עֵשָׂו בֶּן בְּנוֹ יוֹצֵא לְתַרְבּוּת רָעָה, וְאֵין זוֹ שֵׂיבָה טוֹבָה שֶׁהִבְטִיחוֹ הַקָּבָּ"ה; לְפִיכָךְ קִצֵּר הַקָּבָּ"ה ה' שָׁנִים מִשְּׁנוֹתָיו, שֶׁיִּצְחָק חַי ק"פ שָׁנָה וְזֶה קע"ה
FROM THIS RED, EVEN THIS RED THING —red lentils. On that day Abraham had died in order that he might not see his grandson Esau falling into degenerate ways. This would not have been the “good old age” (cf. 25:8) which God had promised him; therefore the Holy One, blessed be He, cut his life short by five years — for Isaac lived 180 years and he only one hundred and seventy five.