بسم الله الرحمن الرحيم
(Fatwa: 1080/1080/M=9/1434)
The shajra (ancestral line) of the Prophet (صلی اللہ علیہ وسلم) is proved only till Adnan with authentic Hadiths:
محمد بن عبد اللہ بن عبد المطلب بن ھاشم بن عبد مناف بن قصی بن کلاب بن مرۃ بن کعب بن لوی بن غالب بن فھر بن مالک بن النضر بن کنانۃ بن خزیمۃ بن مدرکۃ بن الیاس بن مضر بن نزار بن معد بن عدنان (بخاری 1/543)
The line downward is not proved by authentic sources. Even when the Prophet (صلی اللہ علیہ وسلم) mentioned his shajra he would stop at Adnan and say: “mistook those who mention lineage” i.e. they are not true and what they say is unverified. (al-Tabqat al-Kubra, Ibn Sa’d, 1/28- Ref: Seeratul Mustafa 1/18)
Allah knows Best!
Darul Ifta,
Darul Uloom Deoband