Bulugh al-Maram 798
وَعَنْهُ; - أَنَّ رَسُولَ اللَّهِ - صلى الله عليه وسلم - نَهَى عَنْ بَيْعِ حَبَلِ الْحَبَلَةِ, وَكَانَ بَيْعًا يَتَبَايَعُهُ أَهْلُ الْجَاهِلِيَّةِ: كَانَ الرَّجُلُ يَبْتَاعُ الْجَزُورَ إِلَى أَنْ تُنْتَجَ النَّاقَةُ, ثُمَّ تُنْتَجُ الَّتِي فِي بَطْنِهَا. مُتَّفَقٌ عَلَيْهِ, وَاللَّفْظُ لِلْبُخَارِيِّ.
From him, that the Messenger of Allah ﷺ forbade the sale of habal al-habalah. It was a sale that the people of the Jahiliyyah used to transact: a man would buy a camel [on credit] until the she-camel gave birth, and then the one in her belly gave birth. Agreed upon, and the wording is al-Bukhari's.