On the Day of Resurrection, people will be called by the names of their fathers
Imam al-Bukhari (may Allah have mercy on him) established this chapter heading:
يدعي الناس يوم القيامة بآبائهم لا بأمهاتهم
“On the Day of Resurrection, people will be called by (the names of) their fathers, not by (the names of) their mothers.”
Then, under this chapter, he narrated this hadith of Abdullah ibn Umar (may Allah be pleased with them both), that the Messenger of Allah ﷺ said:
إذا جمع الله الأولين والآخرين يوم القيامة يرفع الله لكل غادر لواء يوم القيامة فيقال هذه غدرة فلان بن فلان
“When Allah gathers the first and the last (all of them) on the Day of Resurrection, He will raise a banner for every traitor and deceiver. Then it will be announced: ‘This is the treachery of so-and-so, son of so-and-so.'”
[Bukhari: 6177, Kitab al-Adab: Bab ma yud’a al-nas bi-aba’ihim; Muslim: 12/4, Kitab al-Jihad: Bab tahrim al-ghadr; Ahmad: 29/2; Ibn Hibban in his Sahih: 7297, 7298; Sharh al-Sunnah: 2482; Umdat al-Ahkam: 417]
In one narration, Abu al-Darda (may Allah be pleased with him) reports that the Messenger of Allah ﷺ said:
إنكم تدعون يوم القيامة بأسمائكم وأسماء آبائكم فحسنوا أسمائكم
“Indeed, on the Day of Resurrection you will be called by your names and the names of your fathers, so give yourselves good names.”
[Da’if: Da’if Abi Dawud: 1053, Kitab al-Adab: Bab fi taghyir al-asma’; Abu Dawud: 4948; Darimi: 294/2; Ibn Hibban in his Sahih: 5788; Bayhaqi in Shu’ab al-Iman: 8633, and in al-Sunan al-Kubra: 19308; Sharh al-Sunnah: 3360. Imam Ibn al-Qayyim (may Allah have mercy on him) said that the chain of narration of this report is jayyid (good).]
(Ibn al-Qayyim) What the authentic and explicit Sunnah indicates is exactly this: that on the Day of Resurrection, people will be called by the names of their fathers, not by the names of their mothers.
[Tuhfat al-Mawdud bi-Ahkam al-Mawlud: p. 139]
Some people claim that on the Day of Resurrection people will be called by the names of their mothers. But the narration from which they derive their argument is da’if (weak).
[Da’if: Tabarani al-Kabir: 7979; Majma’ al-Zawa’id: 45/3. Imam al-Haythami (may Allah have mercy on him) says that in its chain of narration there is a group whom I do not know. And Hafiz al-Iraqi stated that its chain of narration is da’if. Takhrij al-Ihya: 128/6. In its chain of narration is a narrator, Utba ibn al-Sakan, whom Imam al-Daraqutni (may Allah have mercy on him) declared matruk al-hadith (abandoned in hadith). Some have even accused him of fabricating hadiths. Mizan al-I’tidal: 425/4]