(56) بَابُ مَنْ رَأَى إِذَا اشْتَرَى طَعَامًا جِزَافًا أَنْ لاَ يَبِيعَهُ حَتَّى يُئْوِيَهُ إِلَى رَحْلِهِ، وَالأَدَبِ فِي ذَلِكَ
Narrated Ibn `Umar:
I saw the people buy foodstuff randomly (i.e. blindly without measuring it) in the lifetime of Allah's Apostle and they were punished (by beating), if they tried to sell it before carrying it to their own houses.
Reference: Sahih al-Bukhari 2137
In-book reference: Book 34, Hadith 89
USC-MSA web (English) reference(deprecated numbering scheme): Vol. 3, Book 34, Hadith 347