Correct option is B
Under Section 58 of the Code of Civil Procedure, 1908, if a person is detained in civil prison for non-payment of a sum exceeding five thousand rupees, the maximum period of detention shall not exceed three months, unless otherwise specified by the court or if the decree involves smaller amounts or special circumstances. This is meant to ensure proportionality and fairness in the execution of decrees.