I saw people during the time of the Messenger of Allah ﷺ being struck for selling food on the spot when they had bought it in bulk. They were prevented from doing so until they had transported it to their dwellings.Ibn Shihab said, Ubaydullah bin Abdullah bin Umar narrated to me that his father used to buy food in bulk and then carry it to his family.
و حدثني حرملة بن يحيى حدثنا ابن وهب أخبرني يونس عن ابن شهاب أخبرني
قد رأيت الناس في عهد رسول الله ﷺ إذا ابتاعوا الطعام جزافا يضربون في أن يبيعوه في مكانهم وذلك حتى يؤووه إلى رحالهم قال ابن شهاب وحدثني عبيد الله بن عبد الله بن عمر أن أباه كان يشتري الطعام جزافا فيحمله إلى أهله