Dua for Forgiveness Before Sleeping: What Is Authentic
The well-known hadith that says a particular saying at the bed forgives sins is weak in its chain. What is authentic is the istighfar below, which is not tied to bedtime, and the tasbih with the same wording about the foam of the sea.
The hadith of Abu Said
At-Tirmidhi 3397 reports from Abu Said al-Khudri that whoever says when he goes to his bed "Astaghfirullahal azim alladhi la ilaha illa huwal hayyal qayyuma wa atubu ilayh" three times has his sins forgiven even if they are like the foam of the sea and the number of leaves on the trees. Its chain is weak, so it is not presented as an authentic dua before sleeping.
The authentic istighfar
Bilal ibn Yasar reported from his father, from his grandfather, that he heard the Prophet (peace be upon him) say: whoever says:
أَسْتَغْفِرُ اللَّهَ الْعَظِيمَ الَّذِي لاَ إِلَهَ إِلاَّ هُوَ الْحَيَّ الْقَيُّومَ وَأَتُوبُ إِلَيْهِ
Astaghfiru llāha l-‘azīma lladhī lā ilāha illā huwa l-hayya l-qayyūma wa'atūbu ilayh
I ask forgiveness of Allah, the Almighty, besides whom there is no god, the Ever-Living, the Sustainer of all, and I repent to Him.
sala-sa.com
The same dua is in Abu Dawud 1517, graded sahih by al-Albani. The end of the hadith says that the one who says it is forgiven even if he fled from the battlefield. The wording is the same as in the weak hadith of Abu Said, but this one is not tied to the time of the bed, to three repetitions or to the number of sins.
The authentic tasbih
Abu Hurayrah said that the Messenger of Allah said:
مَنْ قَالَ سُبْحَانَ اللهِ وَبِحَمْدِهِ فِي يَوْمٍ مِائَةَ مَرَّةٍ حُطَّتْ خَطَايَاهُ وَإِنْ كَانَتْ مِثْلَ زَبَدِ الْبَحْرِ
Whoever says "Subhan Allah wa bihamdih" a hundred times in a day will have his wrongs wiped away, even if they are like the foam of the sea.
The phrase "the foam of the sea" also comes in the tasbih after prayer (Sahih Muslim 597), and it is not in a dua for sleeping.
If you want to ask forgiveness before sleeping
A person can use the authentic istighfar above. For what is reported at the bed, see dua before sleeping, which includes the words of Abu Hurayrah "if You keep my soul, forgive it" (Sahih Muslim 2714). Someone who wants to repent through prayer has the hadith of Abu Bakr on the page salat al-tawbah.
Questions and answers
Is there a dua before sleeping that forgives all sins?
In the hadith of Abu Hurayrah in Muslim 2714 the person lying down says "if You keep my soul, forgive it", which is a request for forgiveness. The promise that all sins are wiped out by one saying at the bed is in a weak hadith.
Should istighfar be said three times before sleeping?
The number three is in the weak hadith. The authentic hadith gives no number.
What does "like the foam of the sea" mean?
Foam is the froth on the waves. It is an expression for a very large number of sins. The same words come in the authentic hadith about tasbih (Sahih al-Bukhari 6405).
Can the weak hadith be passed on as the dua of sleep?
It is a weak hadith. Anyone who passes it on should say that it is weak and give the authentic one with it.
