Some arabic countries have a similar sort of rule. But the reality turned out that rich criminals would pay the victim enough for them to "completely forgive" the criminal, and thus they would avoid any jail time. A poor criminal on the other hand, would serve a long long long prison sentence.
Which countries?