Combine the flour and yeast in the bowl of your stand mixer and mix to combine.
Add the warm water and butter and using the dough hook on your stand mixer, begin to mix on low speed. Increase speed slowly to get dough to incorporate. Dough will look shaggy but come together as it continues to be kneaded. Knead for 8-10 minutes until dough is very smooth and firm. If making dough by hand, combine ingredients in a bowl and mix until a shaggy dough forms. Turn dough out onto a floured surface and knead for 8-10 minutes, adding flour as needed.
Once kneading is done, cover the dough with a clean towel and rest for 15 minutes.
Next, divide the dough into ten equal pieces, roll into a ball, cover the balls with a towel and rest for an additional 5 minutes.
Take one of the balls of dough and without using any flour, roll dough out on the counter into a long strand roughly 24" in length. The strand should be uniform in diameter if you're looking to make Bavarian style pretzels.
Lay the strand in an upside-down horseshoe shape. take each end of the strand, cross them over each other and press into the top of the horseshoe. Transfer the pretzel to a baking tray. Repeat with the other 9 pieces of dough.
Let the pretzels rest uncovered at room temperature for 30 minutes and then transfer to the fridge for at least 1 hour.