(… وَكَتَبْنَا عَلَيْهِمْ فِيهَا أَنَّ النَّفْسَ بِالنَّفْسِ ) (And We ordained for them therein a life for a life …): Meaning, anyone kills another, he should be killed in regard.
( وَمَن لَّمْ يَحْكُم بِمَا أَنزَلَ اللَّهُ فَأُولَٰئِكَ هُمُ الظَّالِمُونَ … ) (…And whoever does not judge by what Allah has revealed – then it is those who are the wrongdoers.): If a problem arises between two people and an unfair judgment is made, or if a life for a life, an eye for an eye, a nose for a nose, an ear for an ear, a tooth for a tooth is not applied, then this is considered unjust. For the coming verse (No. 47), Allah (says):
وَمَن لَّمْ يَحْكُم بِمَا أَنزَلَ اللَّهُ فَأُولَٰئِكَ هُمُ الْفَاسِقُونَ
(And whoever does not judge by what Allah has revealed – then it is those who are the defiantly disobedient)
If a person does not pray, or commits a sinful act as lying, while admitting that they are sins, but he dares to do, so this is disobedience. Hence, according to the beginning of the verse, its end differs.