Sahih Muslim #6416 · The Book of the Merits of the Companions

Sahih MuslimAnas reported that Allah's Messenger
Sahih Muslim · Book 44 · The Book of the Merits of the Companions
Sahih Muslim · كتاب 44 · كتاب فضائل الصحابة
I think (he also sought forgiveness) for the children of the Ansar and the slaves and the freed men of the Ansar. I have no doubt about it.
حَدَّثَنِي أَبُو مَعْنٍ الرَّقَاشِيُّ، حَدَّثَنَا عُمَرُ بْنُ يُونُسَ، حَدَّثَنَا عِكْرِمَةُ، - وَهُوَ ابْنُ عَمَّارٍ - حَدَّثَنَا إِسْحَاقُ، - وَهُوَ ابْنُ عَبْدِ اللَّهِ بْنِ أَبِي طَلْحَةَ - أَنَّ أَنَسًا، حَدَّثَهُ أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم اسْتَغْفَرَ لِلأَنْصَارِ - قَالَ - وَأَحْسِبُهُ قَالَ ‏
"‏ وَلِذَرَارِيِّ الأَنْصَارِ وَلِمَوَالِي الأَنْصَارِ ‏"‏ ‏.‏ لاَ أَشُكُّ فِيهِ ‏.‏
Reference : Sahih Muslim 6416In-book reference : Book 44, Hadith 245