How to wash sleeping bags in a washing machine
1) Look at the instructions label for temperature and additional advice specific to that sleeping bag.
2) Run the bag through the gentle cycle of the washer. Then put it through a second rinse cycle to make sure all soap is removed.
3) Gently squeeze away the excess water with your hands, perhaps in a bath or shower.
4) Let the bag dry on it's own for a few hours. A synthetic bag will take an hour, while a down bag takes several hours.
5) Next, place the bag in a commercial-sized dryer (perhaps at a laundromat) on low heat. For down bags, add two or three tennis balls. This helps break separated clumps of down.