Sahih Bukhari Volume 003, Book 035, Hadith Number 445.

Narated By Ibn 'Abbas : The Prophet came (to Medina) and he told the people (regarding the payment of money in advance that they should pay it) for a known specified measure and a known specified weight and a known specified period.