Mud on the carpet?

Leave to dry overnight, vacuum off the worst in the morning then take a damp cloth with plain water to remove the residue