What happens to dividends when a stock is sold short?

Because the investor who is selling the stock short has an obligation to return the shares, he/she is also obligated to pay any dividends that they are on record for during the time that the short position is open. If the short investor buys the shares back prior to the ex-dividend date, they will not have to pay out this dividend.