No.Absolutely not.The landlord can sell the property whenever he/she wants: Before or after the lease expires.If your lease ends on December 31, your landlord can sell the property on December 1. The purchaser becomes your new landlord. Your lease stays intact. All the terms and conditions remain the same. And when your lease is up, the new landlord is responsible for refunding your security deposit.If your lease ends on December 31 and the landlord sells the property on January 1, the landlord doesnu2019t have to reimburse you a penny of rent. Your lease expired on December 31. Presumably, since the lease expired, you moved out by 11:59 pm on December 31. Youu2019re not renting there anymore, nor do you have any right to rent there. Youu2019re still owed any remaining security deposit, but thatu2019s it.In short, whether the building is sold has no bearing whatsoever on what the tenant might be entitled to.