Any person to whom any animal is entrusted by the owner thereof for the purpose of feeding, herding, pasturing, or ranching has a lien upon the animals for the amount that may be due for feeding, herding, pasturing, or ranching, and is authorized to retain possession of the animal until the amount is paid. This section does not apply to stolen stock.
N.D.C.C. § 35-17-01