On it being forbidden for a man to ascribe his lineage to other than his father or his wala' to other than his patrons

Riyad as-Salihin (The Meadows of the Righteous)

by Imam Nawawi

367. Chapter: On it being forbidden for a man to ascribe his lineage to other than his father or his wala' to other than his patrons

1802. Sa'd ibn Abi Waqqas reported that the Prophet, may Allah bless him and grant him peace, said, "The Garden is unlawful for anyone who makes a false claim of paternity knowing that he is not the father." [Agreed upon]

1803. Abu Hurayra reported that the Prophet, may Allah bless him and grant him peace, said, "Do not disown your fathers. It is disbelief for anyone to disown his father." [Agreed upon]

1804. Yazid ibn Sharik ibn Tariq said, "I saw 'Ali speaking on the minbar and I heard him say, 'No, by Allah, we have nothing to read but the Book of Allah and this paper.' He unfolded it and it contained information about the ages of camels [for zakat] and questions concerning wounds [for retaliation]. In it, the Messenger of Allah, may Allah bless him and grant him peace, said, 'Madina is a sanctuary which extends from 'A'ir to Thawr. If anyone commits an improper action in it or gives refuge to someone who commits improper actions, the curse of Allah is on him, and that of the angels and all people. Neither repentance nor ransom will be accepted from him on the Day of Rising. The dhimma [covenant] of the Muslims is the same. It is valid from the least of them. If anyone breaks a Muslim's covenant, the curse of Allah is on him, and that of the angels and all people. Neither repentance nor ransom will accepted from him on the Day of Rising. If anyone claims paternity from other than his father, or attributes himself to other than his patrons, the curse of Allah is on him, and that of the angels and all people. Neither repentance nor ransom will accepted from him on the Day of Rising.'" [Agreed upon]

1805. Abu Dharr reported that he heard the Messenger of Allah, may Allah bless him and grant him peace, say, "There is no man who claims another man for his father, and that knowingly, but that he has disbelieved. Anyone who lays claim to what is not his is not one of us. He will take his seat in the Fire. Anyone who claims that another man is an unbeliever or says he is the enemy of Allah when that is not the case, that comes back on him." [Agreed upon]