It was narrated from 'Usamah bin Sharik that the Messenger of Allah (ﷺ) said:
"No person will be punished because of another's crime."
English reference: Vol. 3, Book 21, Hadith 2672
Arabic reference: Book 21, Hadith 2774
Read hadith from the major collections in the app, with prayer times and a Qibla compass. Free.