Sahih Muslim Book 10, Hadith Number 3649.

Chapter : It is invalid to sell the commodity before taking possession of it.

Ibn ‘Umar (Allah be pleased with them) reported that they were beaten during the lifetime of Allah’s Messenger (may peace be upon him) if they had bought food-grains in bulk and then sold them in the spot without shifting them (to some other place).