Thawban reported,

Thawban reported that whenever the Messenger of Allah ﷺ finished his prayer, he would seek Allah's forgiveness three times, then say, "O Allah, You are Peace, and from You comes peace. Blessed are You, Possessor of Majesty and Honor."

Tirmidhi 300

Sahih

حدثنا أحمد بن محمد بن موسى، حدثنا عبد الله بن المبارك، أخبرنا الأوزاعي، حدثني شداد أبو عمار، حدثني أبو أسماء الرحبي،

قال حدثني ثوبان، مولى رسول الله ﷺ

قال كان رسول الله ﷺ إذا أراد أن ينصرف من صلاته استغفر الله ثلاث مرات ثم قال اللهم أنت السلام ومنك السلام تباركت يا ذا الجلال والإكرام.

الترمذي 300صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami Tirmidhi
Book
Prayer
Chapter
What to say when finishing the prayer
Numbering
Darussalam 300
Tirmidhi 300