When the Messenger of Allah (ﷺ) finished his prayer. He begged forgiveness three times and…

Sahih Muslim Book 5 Hadith 171

Sahih Muslim #591

The Book of Mosques and Places of Prayer 5:171

Thauban reported:

When the Messenger of Allah (ﷺ) finished his prayer. He begged forgiveness three times and said: O Allah! Thou art Peace, and peace comes from Thee; Blessed art Thou, O Possessor of Glory and Honour. Walid reported: I said to Auza'i: How is the seeking of forgiveness? He replied: You should say: I beg forgiveness from Allah, I beg forgiveness from Allah."

Chapter: It is recommended to recite statements of remembrance after the prayer, and how that is to be done

Grade: Sahih