It should also be noted that in the stronger view in the Shafi’ee and Hnabali madhhabs, the ḥadd punishments are waived if the offender repents even after the case is brought to the court.
When the ḥudood are not applied because of some doubt (ambiguity), but it is still probable that a crime occurred, the victims’ civil rights (such as having the stolen items or their value returned) are not dropped, and the judge can impose a ta‘zeer punishment.
While it is important for all Muslims to believe in the perfection of the Divine and His legislation, Muslims who live as minorities should clearly explain to their compatriots what the ḥudood are – and what they are not; they should also stress that Islamic law is applicable only within the jurisdiction of Muslim countries. As for the Muslims in Muslim-majority countries, they must reach a societal agreement on how to approach those laws.
Brown’s Stoning and Hand Cutting: Understanding the Hudud and the Shariah in Islam.