Ayesha reported,

The Messenger of Allah ﷺ used to say frequently, before his death, "Glory be to You and praise be to You. I seek Your forgiveness and turn to You in repentance."Aisha said, "I asked, 'Messenger of Allah, what are these words I notice you have begun to say?'"He replied, "A sign has been appointed for me regarding my nation. When I see it, I say these words. 'When the help of Allah comes and the victory' [Nasr 110:1]," to the end of the surah.

Muslim 1086

Sahih

حدثنا أبو بكر بن أبي شيبة وأبو كريب قالا حدثنا أبو معاوية عن الأعمش عن مسلم عن مسروق

عن عائشة قالت

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

مسلم 1086صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Prayer
Chapter
What is said in ruku and sujud
Numbering
Darussalam 1086
Muslim 1086