Surah An-Nisa — Ayah 111 (4:111)
وَمَن يَكۡسِبۡ إِثۡمٗا فَإِنَّمَا يَكۡسِبُهُۥ عَلَىٰ نَفۡسِهِۦۚ وَكَانَ ٱللَّهُ عَلِيمًا حَكِيمٗا ١١١
English translation (Saheeh International)
And whoever earns [i.e., commits] a sin only earns it against himself. And Allāh is ever Knowing and Wise.
Brief commentary
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.