Ibn ‘Umar said the Prophet forbade selling a debt to be paid at a future date for another (This is allowing a man who cannot pay a debt when it is due to have an extension of the period in return for an additional sum payable; or when a man agrees to sell an article which someone owes him for money which someone else owes to the buyer.
Anas said that God's Messenger forbade the sale of grapes till they became black and the sale of grain till it had become hard. Thus Tirmidhi and Abu Dawud transmitted it from Anas. The addition which is in al-Masabih, viz., his saying that he forbade the sale of dates till they became ripe, occurs only in their version from Ibn ‘Umar who said that he forbade the sale of palm-trees till the fruit was ripe.
‘Amr b. Shu'aib, on his father’s authority, said his grandfather told that God’s Messenger forbade the type of transaction in which earnest money was paid (An arrangement by which the earnest-money was treated as part of the price if the deal was completed but was retained if it was not completed).