They can sell but you don't have to move. When your landlord sells the rental property where you live to a new landlord, the new landlord takes the property subject to all rental agreements already in effect, written or oral. Your original lease remains valid, and does not terminate at the time of the sale.
The one exception to this rule is if your lease agreement contains a statement that your lease will terminate (generally upon 30 days notice) if the property is sold. These types of clauses are sometimes included in lease agreements by landlords who are planning to sell the property during the term of the lease, or by real estate agencies that are temporarily renting the property until it can be sold. If you want to be guaranteed that you can stay in the rental property during the full term of the lease, you should not sign a lease agreement that contains a termination clause in the event of a sale.
The one exception to this rule is if your lease agreement contains a statement that your lease will terminate (generally upon 30 days notice) if the property is sold. These types of clauses are sometimes included in lease agreements by landlords who are planning to sell the property during the term of the lease, or by real estate agencies that are temporarily renting the property until it can be sold. If you want to be guaranteed that you can stay in the rental property during the full term of the lease, you should not sign a lease agreement that contains a termination clause in the event of a sale.