idiom
do time
Meaning
to spend time in prison
Example
He had to **do time** for his crimes.