Muwatta Malik, Book 31, Hadith 51 (Muwatta Malik 1397)

Yahya related to me from Malik from Nafi that Abdullah ibn Umar said that there was no harm in a man making an advance to another man for food, with a set description and price until a set date, as long as it was not in crops, or dates which had not begun to ripen. Malik said, "The way of doing things among us concerning someone who makes an advance for foodstuffs at a known rate until a stated date, and the date arrives and he finds that there is not enough of what he was sold with the seller to fulfill his order, and so he revokes the sale, is that he must only take back the silver, gold, or price which he paid exactly. He does not buy anything else from the man for the same price until he has got back what he paid. That is because if he took something else besides the price which he paid him or exchanged it for goods other than the goods which he bought from him, it would be selling food before getting delivery of it." Malik said, "The Messenger of Allah, may Allah bless him and grant him peace, forbade selling food before getting delivery of it." Malik said that it was not good if the buyer regretted his purchase and asked the seller to revoke the sale for him and he would not press him immediately for what he had paid. The people of knowledge forbade that. That was because when the food was made ready for the buyer by the seller, the buyer deferred his due from the seller in order that he might revoke the sale for him. That was the sale of food with delayed terms before taking delivery of the food. Malik said, "The explanation of that is that when the date of delivery...