I feel your pain. In 1972, I took a job in Duluth, MN. I rented a house that had basically been a summer home, literally on the shoreline of Lake Superior. The exterior was nice, but the prior tenants, a group of "kids" had torn the interior apart. The rent was very cheap! There were holes in the walls, torn up carpeting, chunks of linoleum missing in the kitchen. When I looked at the house with the realtor/owner, I saw potential and made a deal. I'd do some repairs if the owner would subtract the cost of materials from my rent. Over the course of a couple of months, I repaired all the wall and ceiling damage and painted every wall and ceiling. I removed the torn carpeting and floor moulding when I discovered that under it the floor was tongue and groove aged fir. Then I moved all the kitchen appliances to the garage while I stripped off all the linoleum. Over the course of a weekend, I rented a floor sander and sanded all the flooring on the main floor. Once sanded, I applied Watco penetrating floor finish. I reattached all the mouldings. The floors turned out beautiful. The complete interior looked terrific.
About a week after I sent in all the receipts for materials and sanding equipment rentals, the owner dropped by with a Polaroid camera. He looked at the finished product, took several photographs, and said, "I can't believe how beautiful this house looks. I'm putting it up for sale tomorrow. Until it's sold, you have no rent. I was thrilled.
A few days later, he phoned me and said the house sold, sight unseen, except for the pictures he'd taken.
I had 30 days from the 1st of the next month to move out.
No, I didn't have a lease, because I wasn't certain how long I'd be at the new job.
50 years later, the episode still pisses me off.