Safwan bin Mihraz reported,

While I was walking with Ibn Umar, holding his hand, a man approached and asked, "How did you hear the Messenger of Allah ﷺ speak about the private conversation between Allah and the believer?"Ibn Umar replied, "I heard the Messenger of Allah ﷺ say, 'Allah will bring the believer near, place His shelter over him, and conceal him. He will ask, "Do you remember such-and-such sin? Do you remember such-and-such sin?" The believer will reply, "Yes, my Lord." When Allah has made him acknowledge his sins, and the believer thinks within himself that he is doomed, Allah will say, "I concealed them for you in the world, and today I forgive them for you." Then he will be given the record of his good deeds.As for the disbeliever and the hypocrites, the witnesses will declare, "These are the ones who lied against their Lord. Surely the curse of Allah is upon the wrongdoers" [Hud 11:18].'"

Azami 11422

Sahih

عن صفوان بن محرز المازني، قال

بينما أنا أمشي مع ابن عمر آخذ بيده، إذ عرض رجل، فقال: كيف سمعت رسول الله ﷺ يقول في النجوى؟ فقال: سمعت رسول الله ﷺ يقول: إن الله يدني المؤمن، فيضع عليه كنفه ويستره، فيقول: أتعرف ذنب كذا، أتعرف ذنب كذا؟ فيقول: نعم أي رب، حتى إذا قرره بذنوبه، ورأى في نفسه أنه هلك، قال: سترتها عليك في الدنيا، وأنا أغفرها لك اليوم، فيعطى كتاب حسناته، وأما الكافر والمنافقون، فيقول الأشهاد: {هؤلاء الذين كذبوا على ربهم ألا لعنة الله على الظالمين} [هود: ١٨].

الأعظمي 11422صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Repentance and seeking forgiveness
Chapter
Comprehensive and general supplications
Section
Allah will make the servant acknowledge his sins on the Day of Resurrection, then forgive him for them
Numbering
Jami al-Kamil 11422 (2nd edition)
Azami 11422