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.” Sufyan contradicted him. (Sahih)