You don't always need to evict to sell to us. We buy houses with tenants in place — we've done it many times, including cash-for-keys when that works better for everyone.
A sale does not cancel the lease; the buyer becomes the new landlord. From the day the new owner gets title, the new owner is responsible for returning the security deposit and must give each tenant a signed statement that identifies the new owner, its responsibility for the deposit, and the exact amount. If you collected a deposit, you remain responsible until the new owner receives it or takes over that responsibility, unless your written contract says otherwise.
For a month-to-month tenancy with monthly rent, either side can give notice. The tenancy ends on the later of the date in the notice or one month after notice is given. A lease signed by both sides can set a different notice period. We can talk through the lease, occupancy, and handoff with you.
Texas Property Code §92.105: security deposits when ownership changes · Texas Property Code §91.001: month-to-month notice · Midlothian tenant-occupied sale guidance