It is invalid to sell goods before taking possession of them Sahih Muslim 1527 a
Translation
Ibn Umar (Allah be pleased with them) reported
We used to buy foodgrains during the lifetime of Allah's Messenger (ﷺ). He (the Holy Prophet) would then send to us one who commanded us to take them (the foodgrains) to a place other than the one where we had bought them before we sold it.