Social Security wages

What type of work can be used towards social security retirement compensation?  My husband has sustained an injury and is unable to work.  He currently has 39 credits towards his social security retirement.