Section 2. Notwithstanding any general or special law to the contrary, a foreclosing owner shall not evict a tenant except for just cause or unless a binding purchase and sale agreement has been executed for a bona fide third party to purchase the housing accommodation from a foreclosing owner.