Abu Hurairah (RA) reported Allah's Messenger (ﷺ) as saying: He who bought foodgrain should not sell it until he had measured it. In the narration of Abu Bakr (RA) there the word is Ibta' instead of Ishtara.
Hadith ReferenceSahih Muslim / The Book of Transactions / Hadith: 1528