E. Cobham Brewer 18101897. Dictionary of Phrase and Fable. 1898.
Quod.
To be in quodin prison. A corruption of quad, which is a contraction of quadrangle. The quadrangle is the prison enclosure in which the prisoners are allowed to walk, and where whippings used to be inflicted.