Sunan Ibn Majah, Volume 3, Book 21, Hadith 2671 (DarusSalam)

It was narrated that Khashkhash Al-Anbari said: “I came to the Prophet and my son was with me. He said: 'You will not be punished because of his crime and he will not be punished because of yours.'”

حَدَّثَنَا عَمْرُو بْنُ رَافِعٍ، حَدَّثَنَا هُشَيْمٌ، عَنْ يُونُسَ، عَنْ حُصَيْنِ بْنِ أَبِي الْحُرِّ، عَنِ الْخَشْخَاشِ الْعَنْبَرِيِّ، قَالَ أَتَيْتُ النَّبِيَّ صلى الله عليه وسلم وَمَعِي ابْنِي فَقَالَ ‏ "‏ لاَ تَجْنِي عَلَيْهِ وَلاَ يَجْنِي عَلَيْكَ ‏" ‏ ‏.‏

sunnah.com