What happens to the tenant of a property that sells?
This depends on the state. In Illinois, this is a tenant accepted state. What this means is regardless if the property changes hands, if there is a lease, it supersedes the sale.
So for example, if the tenant has 6 months left on the lease when the property is sold, they have the legal right to stay.