Prisoners do not qualify for disability benefits. Ex-prisoners might, but only if they have a physical or mental impairment that keeps them from working.
Resources, newsletter and forum for attorneys handling Social Security disability cases, from the National Organization of Social Security Claimants’ Representatives.
From the University of Arkansas, details of work incentives for Social Security Disability and Supplemental Security Income recipients who want to return to work.