Sahih al-Bukhari, Book 34, Hadith 87 (Bukhari 2059)

Narrated Ibn `Abbas:

The Prophet (ﷺ) forbade the selling of foodstuff before receiving it. I consider that all types of sellings should be done similarly.