When any such religious congregation has become extinct or has ceased to occupy such property as a place of worship, so that it may be regarded as abandoned property, the petition may be filed either by the surviving trustee or trustees, should there be any, or by any one or more members of such congregation, should there be any, or by the religious body which by the laws of the church or denomination to which the congregation belongs has the charge or custody of the property, or in which it may be vested by the laws of such church or denomination. The court shall either (i) make a decree for the sale of the property or the settlement of boundaries between adjoining properties by agreement, and the disposition of the proceeds in accordance with the laws of the denomination and the printed acts of the church or denomination issued by its authority, embodied in book or pamphlet form, shall be taken and regarded as the law and acts of such denomination or religious body or (ii) at the request of the surviving trustees and after notice in accordance with law to all necessary parties, make such order as may be proper providing for the gift of such property to any willing local, state or federal entity or to a willing private, nonprofit organization exempt from taxation under § 501(c) (3) of the Internal Revenue Code, provided the court finds that (a) the property includes a historic building or landmark so designated by the Commonwealth and (b) the purpose of such gift is historical preservation of the property.
The court may make such order as to the costs in all these proceedings as may seem proper.
Va. Code § 57-15