If you sell your shares on the exact ex-dividend date, you will still receive the upcoming dividend payment. This occurs because exchange regulations dictate that the ex-dividend date is set one business day prior to the record date. Therefore, any investor who purchases or owns the stock prior to the ex-dividend date and holds it through that day remains fully entitled to the declared cash distribution, whereas selling prior to that date forfeits the payout.