It is imperative that imprisonment...
It is imperative that imprisonment, bar the exceptional circumstances as defined in Islam, must be avoided by all means, for the substantial harm it entails: Economic harm; in this aspect, the prisoner stops his normal occupational activity and his expenses must be met by the treasury, which is that of the people. In addition there is the added cost of running the prison and its staff.
Therefore the economic cost of imprisoning an individual is three fold; one the cost of stopping his labour/occupational activity, two the cost of his maintenance during his imprisonment, and three the cost of running the prison system. Educational harm; where the prisoner is prevented from the education he would - normally - receive if he were free. Political harm; where he would not - normally - be able to take part in the political maturity, either for himself or for others.
Social harm; where his family may end up being displaced, which in turn causes even more social harm. Personal moral harm; where the individual normally develops (various) complexes, which will be reflected within the prison and without. Family moral harm; where his imprisonment could lead to the detriment of family moral values - the wife and the children - in the absence of its breadwinner. Construction harm; when the builder or the civil engineer is imprisoned.
Health harm; when a physician or other medical workers are imprisoned. Crime harm; where the criminal prisoner teaches the tricks of his trade to other prisoners, such that when a prisoner leaves the prison he would disseminate his newly acquired knowledge across the society at large. Other harms; such as the destruction of the sense of responsibility in the prisoner.
For one usually feels the restrain and the gravity of committing an offence, and if he were imprisoned, he would know that people would see him as an offender and a criminal, and this would reduce the gravity of committing an offence, and would gradually not see himself as responsible, etc.
Furthermore, it is imperative for one who is being imprisoned or punished, that he and his family are not exposed unnecessarily, or more than that specified in the Islamic law, for a Muslim may not be insulted, degraded, terrorised or humiliated, all of which are outside the bounds of Islamic Shari'ah. There are no grounds for exceeding the specified punishment framework.