It is narrated from Sayyiduna Anas bin Malik (may Allah be pleased with him) that the Ansar came to the Prophet (peace and blessings be upon him) and said (the narrator mentioned the whole story here): "Supplicate to Allah Almighty for us that He forgive us." So he (peace and blessings be upon him) supplicated: 'Allahumma ighfir lil-Ansar, wa abna' al-Ansar, wa abna' abna' al-Ansar' (O Allah, forgive the Ansar, the sons of the Ansar, and the grandsons of the Ansar). They said: "O Messenger of Allah, and our children who are from others (that is, from non-Ansaris)?" He (peace and blessings be upon him) said: "And (all) the children of the Ansar." They said: "O Messenger of Allah, and our freed slaves?" He (peace and blessings be upon him) said: "And the freed slaves of the Ansar."
Shaddad (may Allah have mercy on him) said: My mother narrated to me from Umm al-Hakam bint al-Nu'man bin Suhban (may Allah have mercy on her) that she heard Sayyiduna Anas (may Allah be pleased with him) narrate the like of this from the Prophet (peace and blessings be upon him), except that he added in it: "And the daughters-in-law of the Ansar (forgive them as well)."
Hadith Takhrij«حکم الحدیث فضائل الصحابہ محققاً تنسیق وصي الله بن محمد عباس - مکتبہ شاملہ :قال وصي الله عباس: إسناده حسن . وعبيدالله بن أبي بكر بن أنس بن مالك أبو معاذ الأنصاري ثقة وثقه أحمد وابن معين وأبو داود ، والنسائي ، وابن حبان . . » «أخرجه صحيح مسلم برقم: 4562، وأخرجه سنن الترمذي برقم: 3909، وأخرجه مسند أحمد برقم: 12856، وأخرجه فتح الباري برقم: 5470، وأخرجه مسند البزار برقم: 1117، وأخرجه المستدرك على الصحيحين برقم: 7058، وأخرجه المعجم الأوسط للطبراني برقم: 1466، 2190، 7333، وأخرجه المعجم الصغير للطبراني برقم: 1019» «صحيح مسلم: 4/ 1948؛ مسند الامام احمد: 3/ 162۔ 139»