There are patterns for free and hats themselves for sale all over the internet, if you’re looking for the hat Ma Cobb sends Jayne in the Firefly episode “The Message.”
Our favorite is Heather’s at Wear With Style. Heather knits hats and sells them, as well as putting together kits for knitters who want to make their own hats. The proceeds go towards bills for her daughter’s occupational and speech therapy. Heather had to leave her job as a local TV producer when her daughter was diagnosed with autism. Making hats provides her with an income while enabling her to be available for her daughter during the day. If you’d rather purchase your own supplies, Heather published her pattern on Craftster.
If you prefer to crochet a hat, try Kim’s pattern at CrochetMe.