Abu Huraira (Allah be pleased with him) reported that Messenger of Allah ﷺ forbade a transaction determined by throwing stones, and the type which involves some uncertainty. (Using translation from Muslim 1513)
«نَهَى رَسُولُ اللَّهِ ﷺ عَنْ بَيْعِ الْغَرَرِ وَعَنْ بَيْعِ الْحَصَاةِ» قَالَ عَبْد اللَّهِ «إِذَا رَمَى بِحَصًا وَجَبَ الْبَيْعُ»