Ali bin Abu Talib reported,

Whenever the Prophet ﷺ finished his prayer with the salam, he would say, "O Allah, forgive me for 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 whatever You know about me better than I do. You are the One who brings forward and the One who delays. There is no god but You."

Abu Dawud 1509

Sahih

حدثنا عبيد الله بن معاذ قال حدثنا أبي حدثنا عبد العزيز بن أبي سلمة عن عمه الماجشون بن أبي سلمة عن عبد الرحمن الأعرج عن عبيد الله بن أبي رافع

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

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

أبو داود 1509صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Abu Dawud
Book
Witr
Chapter
What a man says when he gives salam
Numbering
Darussalam 1509
Abu Dawud 1509