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.
Va. Code § 58.1-3944