ذِكْرُ اسْتِحْبَابِ حَلِّ عُقَدِ الشَّيْطَانِ الَّتِي عَلَى قَافِيَةِ الْمَرْءِ الْمُسْلِمِ عِنْدَ نَوْمِهِ بِانْتِبَاهِهِ لِصَلَاةِ اللَّيْلِ
The Messenger of Allah ﷺ as saying: When one you sleeps, the devil ties three knots at the back of his neck, sealing every knot with, "You have a long night, so sleep." So if one awakes and mentions Allah, a knot will be loosened; if he performs ablution another knot will be loosened; and if he prays, the third knot will be loosened; and in the morning he will be active and in good spirits; otherwise he will be in bad spirits and sluggish. (Using translation from Abū Dāʾūd 1306)
أَنَّ رَسُولَ اللَّهِ ﷺ قَالَ «يَعْقِدُ الشَّيْطَانُ عَلَى قَافِيَةِ رَأْسِ أَحَدِكُمْ إِذَا هُوَ نَامَ ثَلَاثَ عُقَدٍ يَضْرِبُ مَكَانَ كُلِّ عُقْدَةٍ عَلَيْكَ لَيْلٌ طَوِيلٌ فَارْقُدْ فَإِنِ اسْتَيْقَظَ فَذَكَرَ اللَّهَ انْحَلَّتْ عُقْدَةٌ وَإِنْ تَوَضَّأَ انْحَلَّتْ عُقْدَةٌ وَإِنْ صَلَّى انْحَلَّتْ عُقْدَةٌ فَأَصْبَحَ نَشِيطًا طَيِّبَ النَّفْسِ وَإِلَّا أَصْبَحَ خَبِيثَ النَّفْسِ كَسْلَانَ»