The defendant, either in person or by his agent or attorney, at any time within five days after the service of a writ of replevin on him, and the replevin of the property thereunder, may require the return of the property replevied upon giving to the sheriff a bond with two or more sufficient sureties in double the value of the property as sworn to in the affidavit of replevin, conditioned for the delivery of the property to the plaintiff, if such delivery be adjudged, and for payment to him of such sum as may for any cause be recovered against the defendant in the suit.
NMS § 42-8-21