Abu Darda reported,

Reported as a tradition traced to the Prophet ﷺ, who said, "Whoever goes to his bed intending to rise during the night and pray, but sleep overcomes him until morning, will have recorded for him what he intended, and his sleep will be a charity granted to him from his Lord."

Ibn Majah 1344

Sahih

حدثنا هارون بن عبد الله الحمال حدثنا الحسين بن علي الجعفي عن زائدة عن سليمان الأعمش عن حبيب بن أبي ثابت عن عبدة بن أبي لبابة عن سويد بن غفلة

عن أبي الدرداء

يبلغ به النبي ﷺ قال من أتى فراشه وهو ينوي أن يقوم فيصلي من الليل فغلبته عينه حتى يصبح كتب له ما نوى وكان نومه صدقة عليه من ربه

ابن ماجه 1344صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Establishing prayer and the sunnah regarding it
Chapter
Whoever slept through his portion of the night
Numbering
Darussalam 1344
Ibn Majah 1344