The Messenger of Allah ﷺ entered the mosque and came upon a man who had finished his prayer and was reciting the tashahhud, saying, "O Allah, I ask You, Allah, the One, the Self-Sufficient, who has not begotten and was not begotten, and to whom none is equal, to forgive me my sins, for You are the Forgiving, the Merciful."The Prophet ﷺ said, "He has been forgiven, he has been forgiven, he has been forgiven," three times.
حدثنا عبد الله بن عمرو أبو معمر حدثنا عبد الوارث حدثنا الحسين المعلم عن عبد الله بن بريدة عن حنظلة بن علي أن
دخل رسول الله ﷺ المسجد فإذا هو برجل قد قضى صلاته وهو يتشهد وهو يقول اللهم إني أسألك يا ألله الأحد الصمد الذي لم يلد ولم يولد ولم يكن له كفوا أحد أن تغفر لي ذنوبي إنك أنت الغفور الرحيم قال فقال قد غفر له قد غفر له ثلاثا
Its isnad is sahih. Nasai narrated it in the Book of Sahw, Chapter on Supplication after Remembrance, no. 1302, from the hadith of Husayn Muallim, with this wording. Ibn Khuzayma graded it sahih, no. 724, as did Hakim, who said it meets the standard of the two Shaykhs, 1/267, and Dhahabi agreed with him. See no. 1493.