Sunan an-Nasa'i, Volume 5, Book 45, Hadith 4842 (DarusSalam)

It was narrated from Ash'ath, from his father that a man from among Banu Tha'labah bin Yarbu' said: "We came to the Messenger of Allah when he was speaking to the people, and some people stood up and said: 'O Messenger of Allah, these are Banu Tha'labah who killed so and so.' The Messenger of Allah said: 'No soul is affected by the sin of another.'''

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

sunnah.com