If you are maintaining a settled short position in a U.S. security as of the close of business one business day prior to the Record Date (this is also one business day prior to the Ex-Dividend Date) you will be liable to the lender for the dividend. If you bought in the position thereafter, the trade would not settle in time for you to avoid that payment obligation.
Additional Information