Abu Saeed Khudri reported,

The Prophet ﷺ said, "Whoever says when he goes to his bed, 'I seek the forgiveness of Allah the Magnificent, there is no god but He, the Ever-Living, the Sustainer of all, and I turn to Him in repentance,' three times, Allah will forgive him his sins even if they were like the foam of the sea, even if they were the number of the leaves of the trees, even if they were the number of the grains of sand of Alij, and even if they were the number of the days of this world."

Tirmidhi 3397

Daif

حدثنا صالح بن عبد الله حدثنا أبو معاوية عن الوصافي عن عطية

عن أبي سعيد رضي الله عنه

عن النبي ﷺ قال من قال حين يأوي إلى فراشه أستغفر الله العظيم الذي لا إله إلا هو الحي القيوم وأتوب إليه ثلاث مرات غفر الله له ذنوبه وإن كانت مثل زبد البحر وإن كانت عدد ورق الشجر وإن كانت عدد رمل عالج وإن كانت عدد أيام الدنيا

الترمذي 3397ضعيف
Contents
Reference
Commentary
Ayat
Collection
Jami Tirmidhi
Book
Supplications
Chapter
From the supplication "I seek forgiveness from Allah, there is no god but He, the Ever-Living, the Self-Sustaining"
Numbering
Darussalam 3397
Tirmidhi 3397