Sahih Muslim – Hadith No : 228

It is reported on the authority of Sa’d b. Abi Waqqas: Both of my ears heard the Messenger of Allah saying this: He who claimed the fatherhood of anyone else besides his real father knowingly (committed a great sin) ;Paradise is forbidden to him. Abu Bakra asserted that he too heard it from the Messenger of Allah (may peace be upon him ).

Hadith In Arabic Text :

حدثني عمرو الناقد، حدثنا هشيم بن بشير، أخبرنا خالد، عن أبي عثمان، قال لما ادعي زياد لقيت أبا بكرة فقلت له ما هذا الذي صنعتم إني سمعت سعد بن أبي وقاص يقول سمع أذناى من رسول الله صلى الله عليه وسلم وهو يقول ‏”‏ من ادعى أبا في الإسلام غير أبيه يعلم أنه غير أبيه فالجنة عليه حرام ‏”‏ ‏.‏ فقال أبو بكرة وأنا سمعته من رسول الله صلى الله عليه وسلم ‏.‏

Chapter : The Book of Faith – كتاب الإيمان