All prospecting permits and leases for oil or gas made or issued under the provisions of this chapter shall be subject to the condition that in case the permittee or lessee strikes water while drilling instead of oil or gas, the Secretary of the Interior may, when such water is of such quality and quantity as to be valuable and usable at a reasonable cost for agricultural, domestic, or other purposes, purchase the casing in the well at the reasonable value thereof to be fixed under rules and regulations to be prescribed by the Secretary.