After a property is sold at a sheriff’s sale (foreclosure sale), there is a period of time referred to as the “redemption period” during which you still have rights. For most properties there is a six month period.
You will remain the owner until the redemption period is over.
During the redemption period, you may continue to live in the property and are not required to make any mortgage payments. You also have the right to sell the property to another person or re-purchase the property.