Sahih Muslim 61
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
لَيْسَ مِنْ رَجُلٍ ادَّعَى لِغَيْرِ أَبِيهِ وَهُوَ يَعْلَمُهُ إِلاَّ كَفَرَ وَمَنِ ادَّعَى مَا لَيْسَ لَهُ فَلَيْسَ مِنَّا وَلْيَتَبَوَّأْ مَقْعَدَهُ مِنَ النَّارِ وَمَنْ دَعَا رَجُلاً بِالْكُفْرِ أَوْ قَالَ عَدُوَّ اللَّهِ . وَلَيْسَ كَذَلِكَ إِلاَّ حَارَ عَلَيْهِ "
It is reported on the authority of Abu Dharr that he heard the Messenger of Allah (ﷺ) saying:
No person who claimed knowingly anyone else as his father besides (his own) committed nothing but infidelity, and he who made a claim of anything, which (in fact) did not belong to him, is not amongst us; he should make his abode in Fire, and he who labeled anyone with unbelief or called him the enemy of Allah, and he was in fact not so, it rebounded on him.
Full reference and source
Sahih Muslim 61 In-book : Book 1, Hadith 123 USC-MSA web (English) : Book 1, Hadith 118 (deprecated)
View source on Sunnah.com (opens in a new tab)