Sahih Bukhari – Hadith No : 1142

Narrated Abu Huraira: Allah’s Apostle said, “Satan puts three knots at the back of the head of any of you if he is asleep. On every knot he reads and exhales the following words, ‘The night is long, so stay asleep.’ When one wakes up and remembers Allah, one knot is undone; and when one performs ablution, the second knot is undone, and when one prays the third knot is undone and one gets up energetic with a good heart in the morning; otherwise one gets up lazy and with a mischievous heart.”

Hadith In Arabic Text :

حدثنا عبد الله بن يوسف، قال أخبرنا مالك، عن أبي الزناد، عن الأعرج، عن أبي هريرة رضى الله عنه أن رسول الله صلى الله عليه وسلم قال ‏”‏ يعقد الشيطان على قافية رأس أحدكم إذا هو نام ثلاث عقد، يضرب كل عقدة عليك ليل طويل فارقد، فإن استيقظ فذكر الله انحلت عقدة، فإن توضأ انحلت عقدة، فإن صلى انحلت عقدة فأصبح نشيطا طيب النفس، وإلا أصبح خبيث النفس كسلان ‏”‏‏.‏

Chapter : Prayer at Night (Tahajjud) – كتاب التهجد