Tenant paying taxes or levies to have credit out of rents

Va. Code Ann. § 58.1-3944, under Chapter 39. Enforcement, Collection, Refunds, Remedies and Review of Local Taxes..

Va. Code Ann. § 58.1-3944

A tenant from whom payment is obtained, by distress or otherwise, of taxes or other charges due from a person under whom he holds, shall have credit for the same against such person out of the rents he may owe him, except when the tenant is bound to pay such taxes or other charges by an express contract with such person.