Sayyiduna Mu'adh bin Jabal (may Allah be pleased with him) said that the Messenger of Allah (peace and blessings be upon him) said: "Two men of the Children of Israel recounted their lineage; one was a Muslim and the other a disbeliever. The disbeliever said: You recount your lineage. (The narrator said:) Then the disbeliever traced his lineage back to nine forefathers, and the Muslim said: I am so-and-so, son of so-and-so, and I disown (the lineage) above them. Then the herald of Musa (peace be upon him) called out: O you two who have recounted your lineage! I have passed judgement between you. As for you, O disbeliever, you traced your lineage to nine forefathers, so you are the tenth of them in the Fire; and as for you, O Muslim, you were content with only two Muslim parents, so you are from the people of Islam, and you are free of all besides them."
Hadith Referenceالمعجم الكبير للطبراني / باب الميم / 17421