Sayyiduna Ibn Abbas (may Allah be pleased with them both), narrating most probably from the Prophet (peace and blessings be upon him), says: "When a man enters Paradise, he asks about his parents, his wife and his children, and he is told: They did not reach your rank and your deeds. He says: O my Lord, I did good deeds for myself and for them. Then the command is given that they be joined with him." And Sayyiduna Ibn Abbas (may Allah be pleased with them both) recited this verse: "And those who believed and whose offspring followed them in faith" [Surah al-Tur: 21] to the end of the verse.
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 12196