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).