Anas bin Malik reported,

The Messenger of Allah ﷺ said, "There are no two recording angels who bring up to Allah what they have recorded of a servant's deeds during the night or the day, and Allah finds good at the beginning of the record and at the end of the record, except that Allah, Exalted is He, says, 'I call you to witness that I have forgiven My servant for whatever lies between the two ends of the record.'"

Tirmidhi 981

Daif

حدثنا زياد بن أيوب حدثنا مبشر بن إسمعيل الحلبي عن تمام بن نجيح عن الحسن

عن أنس بن مالك قال

قال رسول الله ﷺ ما من حافظين رفعا إلى الله ما حفظا من ليل أو نهار فيجد الله في أول الصحيفة وفي آخر الصحيفة خيرا إلا قال الله تعالى أشهدكم أني قد غفرت لعبدي ما بين طرفي الصحيفة

الترمذي 981ضعيف
Contents
Reference
Commentary
Ayat
Collection
Jami Tirmidhi
Book
Funerals
Chapter
Virtue of good deeds at the two ends of the night and day
Numbering
Darussalam 981
Tirmidhi 981