We used to buy and sell foodstuff at the time of the Messenger of Allah ﷺ, and he would send someone to tell us to transfer the food from the place we have bought it to another place before selling it. (Using translation from Aḥmad 395)
كُنَّا نَبْتَاعُ الطَّعَامَ عَلَى عَهْدِ رَسُولِ اللهِ ﷺ فَيَبْعَثُ عَلَيْنَا مَنْ يَأْمُرُنَا بِنَقْلِهِ مِنَ الْمَكَانِ الَّذِي ابْتَعْنَاهُ فِيهِ إِلَى مَكَانٍ سِوَاهُ قَبْلَ أَنْ نَبِيعَهُ