ACTIONS OF SATAN, THE STONED AND CURSED H 1188 "When a person sleeps satan ties three knots at the nape of his head, muttering over each, 'The night is long, sleep on.' If he wakes up and remembers Allah, one of the knots is loosened. Then if he gets up and makes his ablution another one is loosened. If he says his prayer, he is free of all of them and he begins his morning in an alert, good spirited mood. Otherwise he arises in a evil spirited and lazy mood.'" R 1188 Bukhari and Muslim with a chain up to Abu Hurairah who related that the Messenger of Allah, praise and peace be upon him, said this.
1165- وعن أَبي هريرة رضي الله عنه : أنَّ رسول الله صلى الله عليه وآله وسلم ، قَالَ : "يَعْقِدُ الشَّيطَانُ عَلَى قَافِيَةِ رَأسِ أحَدِكُمْ ، إِذَا هُوَ نَامَ ، ثَلاَثَ عُقَدٍ ، يَضْرِبُ عَلَى كُلِّ عُقْدَةٍ : عَلَيْكَ لَيْلٌ طَويلٌ فَارْقُدْ، فَإن اسْتَيقَظَ ، فَذَكَرَ اللهَ تَعَالَى انحَلَّتْ عُقْدَةٌ ، فَإنْ تَوَضّأ ، انْحَلّتْ عُقدَةٌ ، فَإنْ صَلَّى ، انْحَلَّتْ عُقَدُهُ كُلُّهَا ، فَأصْبَحَ نَشِيطاً طَيِّبَ النَّفْسِ ، وَإلاَّ أصْبحَ خَبيثَ النَّفْسِ كَسْلاَنَ" متفقٌ عَلَيْهِ . " قافية الرَّأس" : آخِرُهُ .