Masruq reported,

Ayesha said that the Messenger of Allah ﷺ used to say frequently toward the end of his life, "Glory be to Allah and praise be to Him, I seek Allah's forgiveness and turn to Him in repentance."She said, "I asked, 'Messenger of Allah, why do I see you saying so often, Glory be to Allah and praise be to Him, I seek Allah's forgiveness and turn to Him in repentance?'"He replied, "My Lord عز وجل informed me that I would see a sign in my nation, and He commanded me that when I saw it, I should glorify Him with praise and seek His forgiveness, for He is ever ready to accept repentance. And indeed I have seen it. 'When the help of Allah comes and the victory, and you see people entering the religion of Allah in crowds, then glorify the praises of your Lord and seek His forgiveness. Indeed, He is ever ready to accept repentance.'" [Nasr 110:1–3]

Ahmad 24065

Sahih

حدثنا محمد بن عدي عن داود وربعي بن إبراهيم قال حدثنا داود عن الشعبي

عن مسروق قال

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

أحمد 24065صحيح
Contents
Reference
Commentary
Ayat
Collection
Musnad Ahmad
Book
Ayesha bint Siddiq
Numbering
Darussalam 24065