Ex-Dividend indicates shares which have been bought without the right to receive the dividend. The sell would retain the right to the dividend.