The Prophet (ﷺ) said, "The buyer of foodstuff should not sell it before it has been measured for him." Isma`il narrated instead, "He should not sell it before receiving it."
Sahih al-Bukhari Book 34, Hadith 88