It was narrated from Abu Ad-Darda' who attributed it to the Prophet (ﷺ):
"Whoever goes to his bed intending to get up and pray qiyam at night, then sleep overwhelms him until morning, will have recorded that which he intended and his sleep is a charity given to him by his Lord, the Mighty and Sublime."
Reference: Sunan an-Nasa'i 1787 In-book : Book 20, Hadith 190 English translation : Vol. 2, Book 20, Hadith 1788
Help us gift a modern, ad-free Islamic application for the Muslim Ummah. Your donation will be recorded as Sadaqah Jariyah in your book of deeds, In Sha Allah.