The Messenger of Allah ﷺ forbade the sale involving uncertainty and the sale by pebble-throwing.
حدثنا محرز بن سلمة العدني حدثنا عبد العزيز بن محمد عن عبيد الله عن أبي الزناد عن الأعرج
نهى رسول الله ﷺ عن بيع الغرر وعن بيع الحصاة
Reported by Muslim, Book of Sales, Chapter on the invalidity of the pebble sale and sales involving uncertainty, hadith no. 1513, from the hadith of Ubaydullah bin Umar through this same chain.