Sunan an-Nasa'i, Book 45, Hadith 127 (Nasa'i 4842)

It was narrated that Abu Rimthah said; "I came to the Prophet with my father and he said:

'Who is this with you?' He said:' my son, I bear witness (that he is my son). He said: 'You cannot be affected by his sin or he by yours.