The power source will either.
Exhaust fan and light on separate switches.
Connect two of the black.
Assuming you have 3 wires from the switch box to the fan light location as bill said.
The key factor is to understand where the power source enters the circuit.
Take the 2 wires on the switch that controls the outlet off the switch twist.
Connect the two white wires in the switch box together with a wire nut.
The wiring instructions for your new hunter fan differ slightly based on the type of wall switch and your fan s control system pull chain remote control etc.
If the existing wiring has only 1 switch for control and the power comes to the switch first then you can only control power to the ceiling fan assembly via the switch and you have to control the fan and the light with the pull chain switches when the wall switch is on.
Then this is what you do.
Light timer switch ul listed fosmon 9 setting 1875w in wall countdown electrical switch off 5 10 15 20 30 min 1 2 4 hr energy saving for fans vent lights heaters decorative 2 pack 4 4 out of 5 stars 166.