It is invalid to sell goods before taking possession of them Sahih Muslim 1529

Show Arabic text
Translation
Jabir b. Abdullah (Allah be pleased with them) reported Allah's Messenger (ﷺ) as saying

When you purchase foodgrains, do not sell them until you have taken possession of them.