وَمَن يَكْسِبْ إِثْمًۭا فَإِنَّمَا يَكْسِبُهُۥ عَلَىٰ نَفْسِهِۦ ۚ وَكَانَ ٱللَّهُ عَلِيمًا حَكِيمًۭا
And whoever commits a sin only earns it against himself. And Allah is ever Knowing and Wise.
And whoever commits a sin commits it against himself only since the evil consequences fall on him harming no one else; and God is ever Knower Wise in His actions.