Every provision in a contract restricting a party from enforcing his rights under it by usual legal proceedings in ordinary tribunals, or limiting his time to do so, is void. However, agreements to submit controversies to arbitration, as authorized by the Uniform Arbitration Act, are valid and enforceable, and any provision in a surety contract which limits the time for enforcement is valid and enforceable if the limitation of time is not less than two years after the cause of action has accrued.
SDCL 53-9-6