Hadithcore
Riyad as-Salihin, 1805

Abu Dharr (May Allah be pleased with him) reported:

I heard the Messenger of Allah (ﷺ) saying: "A person who attributes his fatherhood to anyone other than his real father, knowing that he is not his father, commits an act of disbelief. And he who makes a claim of anything which in fact does not belong to him, is none of us. He should make his abode in Hell, and he who labels anyone as disbeliever or calls him the enemy of Allah and he is in fact not so, his charge will revert to him." <b>[Al-Bukhari and Muslim]</b>.

وعن أبي ذر رضي الله عنه أنه سمع رسول الله صلى الله عليه وسلم يقول‏:‏ “ليس من رجل ادعى لغير أبيه وهو يعلمه إلا كفر، ومن ادعى ما ليس له، فليس منا، وليتبوأ مقعده من النار، ومن دعا رجلاً بالكفر، أو قال‏:‏ عدو الله، وليس كذلك إلا حار عليه” ‏(‏‏(‏متفق عليه وهذا لفظ رواية مسلم‏)‏‏)‏‏.‏

References1 variant
In-Book Reference
Book 17, Hadith 295
Sharh · explanationclick to expand
<b>Guidance from the Hadith:</b><br> 1) All false claims are prohibited, which includes attributing oneself to other than one’s real father.<br> 2) It is prohibited to accuse a Muslim of being a disbeliever or the enemy of Allah, unless this is established by the Shariah proofs and the applicable rules, as well as by scholars’ Fatwas that declare him a disbeliever.
Related hadiths3
Compare isnād across 3 related chains →