The Messenger of Allah ﷺ forbade the sale by pebble-throwing and any sale involving uncertainty.
حدثنا يحيى عن عبيد الله عن أبي الزناد عن الأعرج
أن رسول الله ﷺ نهى عن بيع الحصاة وبيع الغرر
Its isnad is sahih, and the hadith has already appeared in 2/376.