In every suit brought in this Commonwealth for the sale of lands for the payment of debts or to subject lands to the payment of liens binding thereon, it shall be the duty of the court, or any commissioner to whom the cause is referred, to ascertain all delinquent taxes on such land together with interest and penalties if any.
Va. Code § 8.01-97