Abu Ramtha reported,

I came to the Prophet ﷺ along with my father. He asked, "Who is this with you?"My father replied, "My son. I bear witness that he is mine."The Prophet ﷺ said, "He will not be held accountable for your crimes, nor will you be held accountable for his."

Nasai 4836

Sahih

أخبرني هارون بن عبد الله قال حدثنا سفيان قال حدثني عبد الملك بن أبجر عن إياد بن لقيط

عن أبي رمثة قال

أتيت النبي ﷺ مع أبي فقال من هذا معك قال ابني أشهد به قال أما إنك لا تجني عليه ولا يجني عليك

النسائي 4836صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Nasai Sughra
Book
Sworn testimony
Chapter
Whether one is held accountable for the crime of another
Numbering
Darussalam 4836
Nasai 4836