Umm Salama bint Abu Umaya reported,

Aishah reported that before he died, the Prophet ﷺ would frequently say, "Glory be to You, Allah, and praise be to You. I seek Your forgiveness and turn to You in repentance."She said, "Messenger of Allah, I notice you often saying, 'Glory be to You, Allah, and praise be to You. I seek Your forgiveness and turn to You in repentance.'"He replied, "I have been commanded to do so," and then he recited, "When the help of Allah comes and the conquest" [Nasr 110:1].

Azami 10825

Sahih

عن أم سلمة قالت

كان النبي ﷺ قبل أن يموت يكثر أن يقول: سبحانك اللهم وبحمدك أستغفرك وأتوب إليك قلت: يا رسول الله إني أراك تكثر أن تقول: سبحانك اللهم وبحمدك أستغفرك وأتوب إليك قال: إني أمرت بأمر فقرأ: {إذا جاء نصر الله والفتح}

الأعظمي 10825صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Supplications, remembrances, and prayer upon the chosen Prophet ﷺ
Chapter
Supplications
Section
Virtue of tahlil, tasbih, tahmid, and takbir in general
Numbering
Jami al-Kamil 10825 (2nd edition)
Azami 10825