Narrated Ibn Abbas: The Prophet, peace be upon him, forbade the selling of foodstuff before its measuring and transferring into one’s possession.” I asked Ibn Abbas, “How is that?” Ibn Abbas replied, “It will be just like selling money for money, as the foodstuff has not been handed over to the first purchaser who is the present seller.”
[3: 342- O.B. Sahih Al-Bukhari]
Narrated Nafi: Ibn Omar told us that the people used to buy food from the caravans in the lifetime of the Prophet, peace be upon him. The Prophet, peace be upon him used to forbid them to sell it at the very place where they had purchased it (but they were to wait) till they carried it to the market where foodstuff was sold. Ibn Omar said, “The Prophet, peace be upon him, also forbade the reselling of foodstuff by somebody who had bought it unless he had received it (all the measure which he has bought) in full measure.”
[3: 334- O.B. Sahih Al-Bukhari]