I saw that during the time of the Messenger of Allah ﷺ the people were beaten when they bought grain on the same spot and sold it there without moving it to their houses. (Using translation from Abū Dāʾūd 3498)
رَأَيْتُ النَّاسَ عَلَى عَهْدِ رَسُولِ اللهِ ﷺ يُضْرَبُونَ إِذَا اشْتَرَى الرَّجُلُ الطَّعَامَ جُزَافًا أَنْ يَبِيعَهُ حَتَّى يَنْقُلَهُ إِلَى رَحْلِهِ