Thauban (May Allah be pleased with him) reported:
Whenever the Messenger of Allah (ﷺ) finished his Salat (prayer), he would beg forgiveness three times [by saying, 'Astaghfirullah' (3 times)] and then he would say: "Allahumma Antas-Salamu, wa minkas-Salamu, tabarakta ya Dhal-Jalali wal-Ikram. (O Allah! You are the Bestower of security and security comes from You; Blessed are You. O Possessor of glory and honour)." Imam Al-Auza'i (one of the subnarrators) of this Hadith was asked: "How forgiveness should be sought?" He replied: "I say: Astaghfirullah, Astaghfirullah (I seek forgiveness from Allah. I seek forgiveness from Allah)."[Muslim].
App reference: Book 20, Hadith 8
Arabic/English book reference: Book 20, Hadith 1876