It is invalid to sell goods before taking possession of them Sahih Muslim 1526 a
Translation
Ibn 'Umar (Allah be pleased with them) reported Allah's Messenger (ﷺ) as saying
He who buys foodgrain should not sell it until he has taken full possession of it.