(8) باب بُطْلاَنِ بَيْعِ الْمَبِيعِ قَبْلَ الْقَبْضِ
Ibn 'Umar (Allah be pleased with them) reported that they were beaten during the lifetime of Allah's Messenger (ﷺ) if they had bought foodgrains in bulk and then sold them in the spot without shifting them (to some other place).
Reference: Sahih Muslim 1527 c
In-book reference: Book 21, Hadith 45
USC-MSA web (English) reference(deprecated numbering scheme): Book 10, Hadith 3649