Good luck to you. It all depends on which brokerage firm you trade. Technically, if you sold on the 7th, it does not settle until three business later. But if the brokerage firm would keep the div without paying you because you sold on the 7th. What could you do? It happened to me with Fidelity before. I thought I was smart but they told me that it was sold on the ex-div date and there is no div. They would not answer if the buyer would get the div either.