Take the steak out of the refrigerator and let it rest at room temperature for 30 minutes.
Season both sides of the steak with salt, black pepper, garlic powder, and onion powder.
Preheat a cast iron skillet over medium heat and add olive oil.
Place the steak in the skillet and sear for 3-4 minutes on each side until a crust forms.
Reduce heat to low, add butter, garlic cloves, and rosemary. Baste the steak with butter while cooking.
Cook until the internal temperature reaches 170°F (77°C), about 8-10 more minutes, flipping occasionally.
Remove from heat and let the steak rest for 5 minutes before slicing and serving.
Notes
For extra juiciness, choose well-marbled cuts like ribeye or porterhouse. Marinating the steak for 2-4 hours before cooking can enhance its tenderness and flavor.