Sahih al-Bukhari 2239
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
مَنْ سَلَّفَ فِي تَمْرٍ فَلْيُسْلِفْ فِي كَيْلٍ مَعْلُومٍ، وَوَزْنٍ مَعْلُومٍ "
Narrated Ibn `Abbas:
Allah's Messenger (ﷺ) came to Medina and the people used to pay in advance the price of fruits to be delivered within one or two years. (The sub-narrator is in doubt whether it was one to two years or two to three years.) The Prophet (ﷺ) said, "Whoever pays money in advance for dates (to be delivered later) should pay it for known specified weight and measure (of the dates).
Full reference and source
Sahih al-Bukhari 2239 In-book : Book 35, Hadith 1 USC-MSA web (English) : Vol. 3, Book 35, Hadith 441 (deprecated)
View source on Sunnah.com (opens in a new tab)