"I came to the Prophet when he was speaking, and a man said: 'O Messenger of Allah, these are Banu Tha'labah bin Yarbu' who killed so and so.' The Messenger of Allah said: 'No,' meaning no soul is affected by the sin of another. " (Using translation from Nasāʾī 4837)
أَتَيْتُ النَّبِيَّ ﷺ وَهُوَ يَتَكَلَّمُ فَقَالَ رَجُلٌ يَا رَسُولَ اللهِ هَؤُلَاءِ بَنُو ثَعْلَبَةَ بْنِ يَرْبُوعَ الَّذِينَ أَصَابُوا فُلَانًا فَقَالَ النَّبِيُّ ﷺ «لَا يَعْنِي تَجْنِي نَفْسٌ عَلَى أُخْرَى»