Juwayria bint Harith reported,

The Prophet ﷺ passed by her while she was in her place of prayer. He then passed by her again around midday and said to her, "Are you still in the same state?"She replied, "Yes."He said, "Shall I teach you words to say? Glory be to Allah equal to the number of His creation, glory be to Allah equal to the number of His creation, glory be to Allah equal to the number of His creation. Glory be to Allah to the extent that pleases Him, glory be to Allah to the extent that pleases Him, glory be to Allah to the extent that pleases Him. Glory be to Allah equal to the weight of His Throne, glory be to Allah equal to the weight of His Throne, glory be to Allah equal to the weight of His Throne. Glory be to Allah equal to the ink of His words, glory be to Allah equal to the ink of His words, glory be to Allah equal to the ink of His words."

Tirmidhi 3555

Sahih

حدثنا محمد بن بشار حدثنا محمد بن جعفر عن شعبة عن محمد بن عبد الرحمن قال سمعت كريبا يحدث عن ابن عباس

عن جويرية بنت الحارث

أن النبي ﷺ مر عليها وهي في مسجدها ثم مر النبي ﷺ بها قريبا من نصف النهار فقال لها ما زلت على حالك فقالت نعم قال ألا أعلمك كلمات تقولينها سبحان الله عدد خلقه سبحان الله عدد خلقه سبحان الله عدد خلقه سبحان الله رضا نفسه سبحان الله رضا نفسه سبحان الله رضا نفسه سبحان الله زنة عرشه سبحان الله زنة عرشه سبحان الله زنة عرشه سبحان الله مداد كلماته سبحان الله مداد كلماته سبحان الله مداد كلماته

الترمذي 3555صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami Tirmidhi
Book
Supplications
Chapter
Virtue of glorifying Allah by the number of His creation
Numbering
Darussalam 3555
Tirmidhi 3555