Start by patting the cod fillets dry with paper towels to remove excess moisture. This step helps achieve a golden crust. Season both sides with salt and pepper, then lightly coat with flour, shaking off any excess.
Heat olive oil in a large skillet over medium-high heat until shimmering. Place the cod gently into the pan and let it cook undisturbed for about 3–4 minutes per side. The fish should be golden outside and flaky inside.
Lower the heat and add butter to the same pan once the cod is removed. Stir in garlic and cook briefly until fragrant, then add lemon juice and herbs. Let the sauce bubble gently for a minute to combine flavors.
Return the cod to the skillet and spoon the warm herb butter sauce over the fillets. Let everything warm together for a minute before turning off the heat. Serve immediately while the fish is at its best.