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."
حدثنا محمد بن بشار حدثنا محمد بن جعفر عن شعبة عن محمد بن عبد الرحمن قال سمعت كريبا يحدث عن ابن عباس
أن النبي ﷺ مر عليها وهي في مسجدها ثم مر النبي ﷺ بها قريبا من نصف النهار فقال لها ما زلت على حالك فقالت نعم قال ألا أعلمك كلمات تقولينها سبحان الله عدد خلقه سبحان الله عدد خلقه سبحان الله عدد خلقه سبحان الله رضا نفسه سبحان الله رضا نفسه سبحان الله رضا نفسه سبحان الله زنة عرشه سبحان الله زنة عرشه سبحان الله زنة عرشه سبحان الله مداد كلماته سبحان الله مداد كلماته سبحان الله مداد كلماته
Muslim also narrated it in the Book of Remembrance and Supplication, Chapter on Glorifying Allah at the Beginning of the Day and Before Sleep, hadith no. 2726, from the hadith of Muhammad bin Abdul-Rahman, with the same chain.