 Although classical Sharia law does not mention imprisonment, prisons are widely used in Iran.Typically, it would be given as a discretionary punishment from the civil code.In other cases, the defendant receives a sentence of exile, which would be carried out in a prison.