Ali bin Abu Talib reported,

Fatimah complained about the blisters she suffered on her hands from grinding with the hand-mill. When some captives were brought to the Prophet ﷺ, she went to ask him for a servant but did not find him, so she met Ayesha and told her about it. When the Prophet ﷺ returned, Ayesha informed him of Fatimah's visit.The Prophet ﷺ then came to us after we had already settled into our beds. We started to get up, but the Prophet ﷺ said, "Stay where you are."He sat down between us until I felt the coolness of his feet on my chest. Then he said, "Shall I teach you something better than what you asked for? When you go to bed, say 'Allahu Akbar' thirty-four times, 'Subhan Allah' thirty-three times, and 'Alhamdulillah' thirty-three times. That is better for you than a servant."

Muslim 6915

Sahih

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

حدثنا علي

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

مسلم 6915صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Remembrance, supplication, Tawba, and seeking forgiveness
Chapter
Glorification at the beginning of the day and at sleep
Numbering
Darussalam 6915
Muslim 6915