عَنْ أَبِي هُرَيْرَةَ رَضِيَ اللَّهُ عَنْهُ عَنِ النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ قَالَ يَعْقِدُ الشَّيْطَانُ عَلَى قَافِيَةِ رَأْسِ أَحَدِكُمْ ثَلَاثَ عُقَدٍ بِكُلِّ عُقْدَةٍ يَضْرِبُ عَلَيْكَ لَيْلًا طَوِيلًا فَارْقُدْ وَقَالَ مَرَّةً يَضْرِبُ عَلَيْهِ بِكُلِّ عُقْدَةٍ لَيْلًا طَوِيلًا قَالَ وَإِذَا اسْتَيْقَظَ فَذَكَرَ اللَّهَ عَزَّ وَجَلَّ انْحَلَّتْ عُقْدَةٌ فَإِذَا تَوَضَّأَ انْحَلَّتْ عُقْدَتَانِ فَإِذَا صَلَّى انْحَلَّتِ الْعُقَدُ وَأَصْبَحَ طَيِّبَ النَّفْسِ نَشِيطًا وَإِلَّا أَصْبَحَ خَبِيثَ النَّفْسِ كَسْلَانًا
It is narrated from Sayyiduna Abu Hurairah, may Allah be pleased with him, that the Noble Prophet, peace and blessings be upon him, said: Satan ties three knots at the back of one of you’s head. On each knot, he pats and says: “You have a long night ahead, so sleep.” The narrator once said: He keeps patting on each knot for a long night. But when a person wakes up and remembers Allah Almighty, one knot is untied. When he performs ablution, the second knot is untied. And when he offers prayer, the third knot is untied. Thus, when he enters the morning, he is good-spirited, cheerful, and pleasant. Otherwise, he is ill-spirited and lazy.