No, it is not recommended to feed peanuts to hamsters.

Can hamster eat Peanuts

Peanuts are high in fat, which can lead to obesity and other health issues in hamsters. Additionally, peanuts can pose a choking hazard due to their size and shape.

Furthermore, peanuts can contain a fungus called Aspergillus, which produces a toxin called aflatoxin. Aflatoxin is harmful to hamsters and can cause liver damage and other health problems.

Also explore the compatibility of these foods for your hamster:
Watermelon, Tomato, Spinach,

It’s best to avoid feeding peanuts or any peanut-based products to your hamster. Instead, provide your hamster with a balanced diet consisting of specially formulated hamster pellets, fresh vegetables, and occasional fruits and treats that are safe for them to consume. If you are unsure about what foods are suitable for your hamster, consult with a veterinarian who specializes in small animal care.

Further Reading : 

https://vethelpdirect.com/vetblog/2023/05/20/what-is-the-best-food-for-hamsters/

https://www.ukpetfood.org/information-centre/pet-nutrition-hub/small-mammal-nutrition/hamster-nutrition.html