Sleep with the intention of waking up for Tahajjud.Abu Ad-Darda’ quoted the Prophet (sal Allahu alaihi wa sallam) as saying:
“Whoever goes to his bed with the intention of getting up and praying during the night, but, being overcome by sleep, fails to do that, he will have recorded for him what he has intended, and his sleep will be reckoned as a charity (an act of mercy) for him from his Lord.”
(An-Nasa’i and Ibn Majah)