How to Remove Mud Stains From Clothing
Removing mud stains from machine-washable clothes is easier if the mud dries completely before cleaning. When mud is wet, it can seep deeper into the fabric, making the stain harder to remove. Mud consists of sand, silt, clay, organic matter, and water, and it may bring along unpleasant smells. Some heavy-duty laundry detergents can effectively manage these stains, but for tougher ones, using stain removers, white vinegar, or baking soda is helpful. To avoid setting the stain or odors permanently, do not put the clothes in the dryer until the stains and odors are fully gone.

Source: https://www.thespruce.com/remove-mud-stains-from-clothing-1901047