Sayyiduna Anas bin Malik (may Allah be pleased with him) says: I heard the Prophet (peace and blessings of Allah be upon him) making this supplication: «اللَّهُمَّ اغْفِرْ لِلْأَنْصَارِ، وَالْأَزْوَاجِ الْأَنْصَارِ، وَلِذَرَارِيِّهِمْ، وَذَرَارِيِّ ذَرَارِيِّهِمْ» "O Allah! Forgive the Ansar, and their wives, and their children, and the children of their children."
Related hadith on this topic