Ali bin Abu Talib reported,

The Prophet ﷺ used to say between the tashahhud and the salutation, "O Allah, forgive me for what I have done before and what I will do later, what I have concealed and what I have done openly, what I have done to excess, and what You know better than I. You are the One who brings forward and You are the One who delays. There is no god but You." The hadith continues.

Azami 2184

Sahih

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

يقول النبي ﷺ بين التشهد والتسليم: اللهم اغفر لي ما قدمت، وما أخرت، وما أسررت وما أعلنت، وما أسرفت، وما أنت أعلم به مني، أنت المقدم، وأنت المؤخر، لا إله إلا أنت الحديث.

الأعظمي 2184صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Prayer
Chapter
Tashahhud and salam
Section
Supplications before the taslim
Numbering
Jami al-Kamil 2184 (2nd edition)
Azami 2184