To season a cast iron pan before using it in the oven, wash it with hot, soapy water, then dry it thoroughly. Apply a thin layer of vegetable oil or flaxseed oil to the pan's surface and bake it in the oven at 350 degrees fahrenheit for an hour.