(25) باب السَّلَمِ
Ibn 'Abbas (Allah be pleased with them) reported that when Allah's Prophet (ﷺ) came to Medina, they were paying one and two years in advance for fruits, so he said:
Those who pay in advance for anything must do so for a specified weight and for a definite time.
Reference: Sahih Muslim 1604 a
In-book reference: Book 22, Hadith 157
USC-MSA web (English) reference(deprecated numbering scheme): Book 10, Hadith 3906
Read hadith from the major collections in the app, with prayer times and a Qibla compass. Free.