I have purchase and sold horses with this clause and no it is not 'legally' binding... but I agree with disneyhorse I would not do it again.
I have sold back horses to someone at what I got the horses for but after the years of putting into them and the better price that was out there I could...