Muwatta Malik, Book 31, Hadith 1 (Muwatta Malik 1347)

Yahya related to me from Malik from a reliable source from Amr ibn Shuayb from his father from his father's father that the Messenger of Allah, may Allah bless him and grant him peace, forbade transactions in which nonrefundable deposits were paid. Malik said, "That is, in our opinion, but Allah knows best, that for instance, a man buys a slave or slave-girl or rents an animal and then says to the person from whom he bought the slave or leased the animal, 'I will give you a dinar or a dirham or whatever on the condition that if I actually take the goods or ride what I have rented from you, then what I have given you already goes towards payment of the goods or hire of the animal. If I do not purchase the goods or hire the animal, then what I have given you is yours without liability on your part.' " Malik said, "According to the way of doing things with us there is nothing wrong in bartering an arabic speaking merchant slave for abyssinian slaves or any other type that are not his equal in eloquence, trading, shrewdness, and know-how. There is nothing wrong in bartering one slave like this for two or more other slaves with a stated delay in the terms if he is clearly different. If there is no appreciable difference between the slaves, two should not be bartered for one with a stated delay in the terms even if their racial type is different." Malik said, "There is nothing wrong in selling what has been bought in such a transaction before taking possession of all of it as long as you receive the price for it from some one other than the original owner." Malik said, "An...