Sunan an-Nasa'i, Book 13, Hadith 159 (In-Book)

Thawban, the freed slave of the Messenger of Allah, narrated that: When he finished the prayer, the Messenger of Allah would pray for forgiveness three times and say: 'Allahumma anta asalam, wa minka as-salam tabarakta ya dhal-jalali wal-ikram (O Allah, You are the source of eace (or the One free from all faults) and from You comes peace, blessed are You, O Possessor of Majesty and Honor)."

أَخْبَرَنَا مَحْمُودُ بْنُ خَالِدٍ، قَالَ حَدَّثَنَا الْوَلِيدُ، عَنْ أَبِي عَمْرٍو الأَوْزَاعِيِّ، قَالَ حَدَّثَنِي شَدَّادٌ أَبُو عَمَّارٍ، أَنَّ أَبَا أَسْمَاءَ الرَّحَبِيَّ، حَدَّثَهُ أَنَّهُ، سَمِعَ ثَوْبَانَ، مَوْلَى رَسُولِ اللَّهِ صلى الله عليه وسلم يُحَدِّثُ أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم كَانَ إِذَا انْصَرَفَ مِنْ صَلاَتِهِ اسْتَغْفَرَ ثَلاَثًا وَقَالَ ‏ "‏ اللَّهُمَّ أَنْتَ السَّلاَمُ وَمِنْكَ السَّلاَمُ تَبَارَكْتَ يَا ذَا الْجَلاَلِ وَالإِكْرَامِ ‏" ‏ ‏.‏

sunnah.com