When any payment is made under the terms of a contract, by means of which payment a perpetual right to the use of water necessary to irrigate a certain tract of land is secured, said water right shall forever remain a part of said tract of land, and the title to the use of said water can never be affected in any way by any subsequent transfer of the canal or ditch property or by any foreclosure or any bond, mortgage or other lien thereon; but the owner of said tract of land, his heirs or assigns, shall forever be entitled to the use of the water necessary to properly irrigate the same, by complying with such reasonable regulations as may be agreed upon, or as may from time to time be imposed by law. And said payment for said water right shall be a release of any bond or mortgage upon the canal property of the person or company from whom such right is purchased or their successors or assigns, to the amount of such water right thus purchased and paid for, and said person or company from whom such water right is purchased shall furnish to the party or parties purchasing such right a release, or a good and sufficient bond for a release, from said mortgage or bonded indebtedness to the amount of the water right thus purchased.
Idaho Code § 42-915