https://www.avail.co/education/articles/sell-house-with-tenant

Having a rental property with existing tenants can make the process of selling that property even more complicated. You’ll have to advertise the property and conduct showings while being mindful of the rights and needs of your tenants.
In this article, we explain what happens when a property is sold and share five tips for selling a property with existing tenants.
Can You Sell a Rental Property With Tenants?
As a landlord, you can sell a rental property with tenants living there if you don’t violate your existing lease agreement or your tenant’s rights. It’s important to remember that you’ll need to handle the sale of the property in a way that is fair to your tenants. Before selling your property, here are some pros and cons to consider.