كتاب المساقاة
22  
The Book of Musaqah
(25)
Chapter: Salam (Payment in Advance)
(25)
باب السَّلَمِ ‏‏
Sahih Muslim 1604 b

Ibn 'Abbas (Allah be pleased with them) reported that when Allah's Messenger (ﷺ) came to (Medina) and the people were paying in advance (for the fruits, etc.), he said to them:

He who makes an advance payment should not make advance payment except for a specified measure and weight (and for a specified period).
حَدَّثَنَا شَيْبَانُ بْنُ فَرُّوخَ، حَدَّثَنَا عَبْدُ الْوَارِثِ، عَنِ ابْنِ أَبِي نَجِيحٍ، حَدَّثَنِي عَبْدُ اللَّهِ، بْنُ كَثِيرٍ عَنْ أَبِي الْمِنْهَالِ، عَنِ ابْنِ عَبَّاسٍ، قَالَ قَدِمَ رَسُولُ اللَّهِ صلى الله عليه وسلم وَالنَّاسُ يُسْلِفُونَ فَقَالَ لَهُمْ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏ "‏ مَنْ أَسْلَفَ فَلاَ يُسْلِفْ إِلاَّ فِي كَيْلٍ مَعْلُومٍ وَوَزْنٍ مَعْلُومٍ ‏"‏ ‏.‏
Reference : Sahih Muslim 1604b
In-book reference : Book 22, Hadith 158
USC-MSA web (English) reference : Book 10, Hadith 3907
  (deprecated numbering scheme)