The Prophet (ﷺ) came to Medina and the people used to pay in advance the prices of fruits…

Sahih al-Bukhari Book 35 Hadith 14

Sahih al-Bukhari #2253

Sales in which a Price is paid for Goods to be Delivered Later (As-Salam) 35:14

Narrated Ibn `Abbas:

The Prophet (ﷺ) came to Medina and the people used to pay in advance the prices of fruits to be delivered within two to three years. The Prophet (ﷺ) said (to them), "Buy fruits by paying their prices in advance on condition that the fruits are to be delivered to you according to a fixed specified measure within a fixed specified period." Ibn Najih said, " ... by specified measure and specified weight."

Chapter: As-Salam for a fixed specified period

Grade: Sahih