Do I file a 1040 if I have been in a department of corrections

I was told I could get 10% of $30,000 for the last 3 years if so.