كتاب البيوع
21  
The Book of Transactions
(8)
Chapter: It is invalid to sell goods before taking possession of them
(8)
باب بُطْلاَنِ بَيْعِ الْمَبِيعِ قَبْلَ الْقَبْضِ ‏‏
Sahih Muslim 1526 d

Ibn 'Umar (Allah be pleased with them) reported Allah's Messenger (ﷺ) as saying,:

He who bought foodgrain should not sell it until he had taken possession of it.
حَدَّثَنَا يَحْيَى بْنُ يَحْيَى، وَعَلِيُّ بْنُ حُجْرٍ، قَالَ يَحْيَى أَخْبَرَنَا إِسْمَاعِيلُ بْنُ جَعْفَرٍ، وَقَالَ عَلِيٌّ حَدَّثَنَا إِسْمَاعِيلُ، عَنْ عَبْدِ اللَّهِ بْنِ دِينَارٍ، أَنَّهُ سَمِعَ ابْنَ عُمَرَ، قَالَ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏ "‏ مَنِ ابْتَاعَ طَعَامًا فَلاَ يَبِعْهُ حَتَّى يَقْبِضَهُ ‏"‏ ‏.‏
Reference : Sahih Muslim 1526d
In-book reference : Book 21, Hadith 44
USC-MSA web (English) reference : Book 10, Hadith 3648
  (deprecated numbering scheme)