It was narrated from 'Abdur-Rahman bin 'Awf that the Messenger of Allah said: "The thief is not to be penalized (financially) if the Hadd punishment is carried out on him". (Daif) Abu 'Abdur-Rahman (An-Nasai) said: This is Mursal and it is not confirmed.
The Prophet Muhammad ﷺ taught us that justice must be served when punishing someone who has committed a crime like theft. He also taught us that we must always follow what Allah has commanded in order to ensure justice and fairness in society. We should never take matters into our own hands or make up our own laws because this could lead to injustice being done against someone who may have committed a crime but does not deserve harsh punishments like cutting off their hands or stoning them to death.