The Prophet (ﷺ) forbade the type of sale which involves risk (or uncertainty) and a transaction determined by throwing stones.
Sunan Abi Dawud Book 23, Hadith 51