Sahih Muslim 2516
Sahih Muslim · Book 44: The Book of the Merits of the Companions · The Supplication Of The Prophet (SAW) For Ghifar And Aslam
Abu Huraira reported Allah's Messenger (ﷺ) as saying:
وَحَدَّثَنِي حُسَيْنُ بْنُ حُرَيْثٍ ، حَدَّثَنَا الْفَضْلُ بْنُ مُوسَى ، عَنْ خُثَيْمِ بْنِ عِرَاكٍ ، عَنْ أَبِيهِ ، عَنْ أَبِي هُرَيْرَةَ ، أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم قَالَ " أَسْلَمُ سَالَمَهَا اللَّهُ وَغِفَارُ غَفَرَ اللَّهُ لَهَا أَمَا إِنِّي لَمْ أَقُلْهَا وَلَكِنْ قَالَهَا اللَّهُ عَزَّ وَجَلَّ " .
To the tribe of Aslam Allah has granted safety and to the tribe of Ghifar Allah has granted pardon. Verily it is not I that say this, but (it is) Allah the Exalted and Glorious. (who) says this.