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.
tabarani:3451Hāshim b. Marthad > Muḥammad b. Ismāʿīl b. ʿAyyāsh from my father > Ḍamḍam b. Zurʿah > Shurayḥ b. ʿUbayd > Abū Mālik al-Ashʿarī

[Machine] The Messenger of Allah ﷺ said, "When the son of Adam goes to sleep, the angel says to the devil, 'Give me your record.' He then gives it to him. The angel erases ten evil deeds written in his record from the devil's record and writes down ten good deeds. When any one of you desires to sleep, let him recite thirty-three tasbeeh (subhanAllah), thirty-three tahmeed (alhamdulillah), and thirty-four takbeer (Allahu akbar). Those are one hundred (good deeds)."  

الطبراني:٣٤٥١حَدَّثَنَا هَاشِمُ بْنُ مَرْثَدٍ ثنا مُحَمَّدُ بْنُ إِسْمَاعِيلَ بْنِ عَيَّاشٍ حَدَّثَنِي أَبِي حَدَّثَنِي ضَمْضَمُ بْنُ زُرْعَةَ عَنْ شُرَيْحِ بْنِ عُبَيْدٍ عَنْ أَبِي مَالِكٍ الْأَشْعَرِيِّ قَالَ

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


See similar narrations below:

Collected by Suyūṭī
suyuti:2685a
Request/Fix translation

  

السيوطي:٢٦٨٥a

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

[طب] الطبرانى في الكبير عن (أبي) مالك الأشعرى