Evidence for these positions:
The Ḥanafīs, Shāfiʿīs, and all who side with them cite the report transmitted by Aḥmad and al-Nasāʾī from Ḥakīm ibn Ḥizām, who said: “I asked, ‘Messenger of Allah, I enter into various purchases; what of them is lawful for me and what is unlawful?’ He replied, ‘When you purchase something, do not resell it until you have taken possession of it.’” The chain of this narration has been critiqued by the scholars.
They also adduce the tradition related by Abū Dāwūd and al-Dāraquṭnī—declared sound by al-Ḥākim and Ibn Ḥibbān—from Zayd ibn Thābit: “The Prophet ﷺ forbade merchandise to be sold at the very place where it was bought until the traders had moved it to their own quarters.” The plain sense of these two ḥadiths is comprehensive, applying to every object of sale.
The Mālikīs, who restrict the prohibition to food that is measured or weighed, rely on the report recorded by Muslim and Aḥmad from Jābir: “The Messenger of Allah ﷺ said, ‘When you buy food, do not sell it until you have received it in full.’” “Full receipt” pertains only to goods dealt with by measure or weight.
Similar wording occurs in Muslim and Aḥmad from Abū Hurayrah: “The Messenger of Allah ﷺ forbade purchasing food and then reselling it until it has been fully received.”
Muslim also relates that the Prophet ﷺ said: “Whoever buys food must not sell it until he has measured it.”
Those who make no distinction in foodstuffs between bulk purchase (jazāf) and measured purchase argue from the ḥadith reported by al-Bukhārī, Muslim, Abū Dāwūd, and al-Nasāʾī from Ibn ʿUmar: “They used to buy grain in bulk at the upper market; the Messenger of Allah ﷺ forbade them to sell it until they had moved it away.” Another wording of this ḥadith states: “Whoever buys food must not sell it until he has taken possession of it.”
Taken together, these traditions encompass both bulk and measured transactions, while the report of Ibn ʿUmar is an explicit text concerning bulk goods.