You'll receive the money for whatever you had in your account on 8/18.
If you had other shares in 6/26 but sold before 8/18. You may see some lines (notes) in you account about the dividend for those shares, but the dividend won't be paid to you. It'll be paid to whoever ended with those shares on 8/18.