Ali bin Abu Talib reported,

Whenever the Prophet ﷺ finished the prayer with the closing salam, he would say, "Allah, forgive me what I have done before and what I will do later, what I have concealed and what I have made public, what I have done in excess, and what You know better than I. You are the One who brings forward and You are the One who puts back. There is no god but You."

Azami 2228

Sahih

عن علي بن أبي طالب قال

كان النبي ﷺ إذا سلم من الصلاة قال: اللهم اغفر لي ما قدمت وما أخرت، وما أسررت، وما أعلنت، وما أسرفت، وما أنت أعلم به مني، أنت المقدم، وأنت المؤخر، لا إله إلا أنت.

الأعظمي 2228صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Prayer
Chapter
Tashahhud and salam
Section
Adhkar after the obligatory prayers
Numbering
Jami al-Kamil 2228 (2nd edition)
Azami 2228