In another scenario if the confined were to be free...
In another scenario if the confined were to be free, and he would have done either one job or another with differing wages, then in case of confinement, the culprit must forfeit the average amount of the two wages. Torture No one has the right or permission to torture another individual; whether with traditional means such as whips, or with modern means such as electric shocks, etc.
Needless to say for few specific cases as identified by Islamic law, pre-defined penalties are prescribed as mentioned in book of “al-Hudoud wal Ta'zirat”. The penalties prescribed by Islamic law are not torture, but rulings for punishment prescribed by Islam for specific cases, implemented only when the crime has been proven in accordance with the Islamic law. This is being for the protection of the purity of society, and safeguarding its health and security.
The evidences for the illegality and prohibition of torture are numerous, and there is no difference in the prohibition of physical and psychological torture. It is not permissible to torture the criminal, and even the unbeliever, let alone the innocent. As for the Hudoud - predefined penalties - and the Ta'zirat - penalties prescribed by a Muslim judge according to Islamic teachings - Islam prescribes them for very few cases.
The execution of these penalties may only be carried out if and only if a number of conditions and criteria are met, and these criteria are such that they practically make carrying out the execution a rarity. Furthermore, in the book of “Islamic Government[^2]” the author mentioned that the Islamic judge has the permission to replace - in the case of Ta'zir - the whip with fine or prison sentence or any other punishment seen as fit. Shirazi, Muhammad; “al-Fiqh series”, volumes 101-102.
The rights of prisoners according to Islamic teachings In Islam it is not permissible to extract a confession from a prisoner by torture. In fact there is no validity in it if the confession is taken even without torture. Also confessions made before television cameras are void too. Confessions of an accused are only valid if he is outside prison, and he confesses willingly.
Fasting and hunger strike In the case of the prisoner who is not sure of the beginning of the holy month of Ramadahn, he should act according to his deduction, and if that is not even probable, then he may start his month-long fast at the closest time he considers it to be correct.