Language:
كتاب السلم
35  
Sales in which a Price is paid for Goods to be Delivered Later (As-Salam)
(2)
Chapter: As-Salam for a known specified weight
(2)
باب السَّلَمِ فِي وَزْنٍ مَعْلُومٍ
Sahih al-Bukhari 2240

Narrated Ibn `Abbas:

The Prophet (ﷺ) came to Medina and the people used to pay in advance the price of dates to be delivered within two or three years. He said (to them), "Whoever pays in advance the price of a thing to be delivered later should pay it for a specified measure at specified weight for a specified period."

حَدَّثَنَا صَدَقَةُ، أَخْبَرَنَا ابْنُ عُيَيْنَةَ، أَخْبَرَنَا ابْنُ أَبِي نَجِيحٍ، عَنْ عَبْدِ اللَّهِ بْنِ كَثِيرٍ، عَنْ أَبِي الْمِنْهَالِ، عَنِ ابْنِ عَبَّاسٍ ـ رضى الله عنهما ـ قَالَ قَدِمَ النَّبِيُّ صلى الله عليه وسلم الْمَدِينَةَ، وَهُمْ يُسْلِفُونَ بِالتَّمْرِ السَّنَتَيْنِ وَالثَّلاَثَ، فَقَالَ ‏ "‏ مَنْ أَسْلَفَ فِي شَىْءٍ فَفِي كَيْلٍ مَعْلُومٍ وَوَزْنٍ مَعْلُومٍ، إِلَى أَجَلٍ مَعْلُومٍ ‏"‏‏.‏
Reference : Sahih al-Bukhari 2240
In-book reference : Book 35, Hadith 3
USC-MSA web (English) reference : Vol. 3, Book 35, Hadith 443
  (deprecated numbering scheme)