There's no need to hedge, the stocks drops by the same amount as the dividend, so you don't lose any money.
Example:
You buy stock XYZ for $20. It declares a $1 dividend.
The stock opens the next day at $19, but you get $1 deposited into your account.