Sayyiduna Abdullah bin Umar (may Allah be pleased with them both) said that the Messenger of Allah (peace and blessings be upon him) "forbade anyone to sell foodstuff that he bought by measure before taking possession of it."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب البيوع / 10688