When the Messenger of Allah ﷺ finished his prayer, he would seek forgiveness three times, then say, "Allah, You are Peace, and from You comes peace. Blessed are You, Possessor of Majesty and Honor."
حدثنا هشام بن عمار حدثنا عبد الحميد بن حبيب حدثنا الأوزاعي ح و حدثنا عبد الرحمن بن إبراهيم الدمشقي حدثنا الوليد بن مسلم حدثنا الأوزاعي حدثني شداد أبو عمار حدثني أبو أسماء الرحبي
أن رسول الله ﷺ كان إذا انصرف من صلاته استغفر ثلاث مرات ثم يقول اللهم أنت السلام ومنك السلام تباركت يا ذا الجلال والإكرام
Muslim narrated it in the Book of Mosques, chapter "The recommendation of remembrance after prayer and its description," hadith no. 591, from the hadith of Walid bin Muslim, through him.