Sure An-Nisaa

4:111

وَمَن يَكْسِبْ إِثْمًۭا فَإِنَّمَا يَكْسِبُهُۥ عَلَىٰ نَفْسِهِۦ ۚ وَكَانَ ٱللَّهُ عَلِيمًا حَكِيمًۭا

Und wer eine Sünde begeht', begeht sie nur gegen sich selbst. Allah ist Allwissend und Allweise.

Tafsir 4:111

Those who commit a minor or major sin will have to face the punishment themselves. No one else will be held responsible. Allah knows the actions of His servants and is Wise in His planning and legislation.