It is invalid to sell goods before taking possession of them Sahih Muslim 1527 c
Translation
Ibn 'Umar (Allah be pleased with them) reported that they were beaten during the lifetime of Allah's Messenger (ﷺ) if they had bought foodgrains in bulk and then sold them in the spot without shifting them (to some other place).