Ali bin Abu Talib reported,

Fatimah, peace be upon her, complained about the hardship she suffered from grinding with the millstone. Some captives had been brought to the Prophet ﷺ, so she went to him but did not find him. She found Ayesha instead and told her about it.When the Prophet ﷺ came home, Ayesha informed him of Fatimah's visit. The Prophet ﷺ then came to us after we had already gone to bed. I started to get up, but he said, "Stay where you are."He sat down between us until I could feel the coolness of his feet on my chest. Then he said, "Shall I teach you something better than what you asked me 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."

Bukhari 3705

Sahih

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

حدثنا علي

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

البخاري 3705صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Virtues of the companions of the Prophet ﷺ
Chapter
Virtues of Ali bin Abu Talib Qurashi Hashimi, Abu Hasan, may Allah be pleased with him
Numbering
Darussalam 3705
Bukhari 3705