The Holy Quran 2:209 — Surah Al-Baqarah
Arabic text
فَإِن زَلَلْتُم مِّنۢ بَعْدِ مَا جَآءَتْكُمُ ٱلْبَيِّنَـٰتُ فَٱعْلَمُوٓا۟ أَنَّ ٱللَّهَ عَزِيزٌ حَكِيمٌ
Translation
So if you err (by not entering into Islaam completely) after the clear signs have come to you (and proven to you that this is the true path to follow), then know that definitely Allaah is Most Powerful (and nothing can stop Him from taking you to task for your wrong doings), The Wise (He is neither impulsive nor unjust and all His commands are filled with wisdom whether man understands it or not).
Tafsir (excerpt) — Tafsir Usmani
Deviation from the shariah brings punishment: that is, if someone, even after the clear rulings of the shariah of Muhammad ﷺ have become known to him, does not hold firm to it but also casts his gaze elsewhere, then let him understand well that Allah is dominant over all: He punishes whom He wills, and no one can avert His punishment.
Preview. The full text opens with JavaScript enabled.