Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
ahmad:10457Ismāʿīl > Yūnus > al-Ḥasan > Abū Hurayrah

[Machine] "When one of you goes to sleep, three knots are tied upon his head with a feather. If he wakes up and remembers Allah, then one knot is untied. If he performs ablution and prays, then the second knot is untied. If he wakes up in the morning and does not engage in any sexual activity during the night, then he wakes up while the third knot is untied."  

أحمد:١٠٤٥٧حَدَّثَنَا إِسْمَاعِيلُ عَنْ يُونُسَ عَنِ الْحَسَنِ عَنْ أَبِي هُرَيْرَةَ قَالَ

إِذَا نَامَ أَحَدُكُمْ عُقِدَ عَلَى رَأْسِهِ ثَلَاثُ عُقَدٍ بِجَرِيرٍ فَإِنْ قَامَ فَذَكَرَ اللهَ ﷻ أُطْلِقَتْ وَاحِدَةٌ وَإِنْ مَضَى فَتَوَضَّأَ أُطْلِقَتِ الثَّانِيَةُ فَإِنْ مَضَى فَصَلَّى أُطْلِقَتِ الثَّالِثَةُ فَإِنْ أَصْبَحَ وَلَمْ يَقُمْ شَيْئًا مِنَ اللَّيْلِ وَلَمْ يُصَلِّ أَصْبَحَ وَهُوَ عَلَيْهِ يَعْنِي الْجَرِيرَ