Ibn 'Umar (Allah be pleased with them) reported that they were beaten during the lifetime of Messenger of Allah ﷺ if they had bought foodgrains in bulk and then sold them in the spot without shifting them (to some other place).
عَنِ ابْنِ عُمَرَ أَنَّهُمْ كَانُوا يُضْرَبُونَ عَلَى عَهْدِ رَسُولِ اللَّهِ ﷺ إِذَا اشْتَرَوْا طَعَامًا جِزَافًا أَنْ يَبِيعُوهُ فِي مَكَانِهِ حَتَّى يُحَوِّلُوهُ