The Messenger of Allah ﷺ forbade the sale involving uncertainty.
حدثنا أبو كريب والعباس بن عبد العظيم العنبري قالا حدثنا أسود بن عامر حدثنا أيوب بن عتبة عن يحيى بن أبي كثير عن عطاء
نهى رسول الله ﷺ عن بيع الغرر
No references are available.
[Sahih] Reported by Daraqutni: 3/15, from the hadith of Aswad bin Amir, that is, Shazan, through this route. Busiri deemed it daif due to the weakness of Ayub bin Utba, but the preceding hadith serves as a corroborating witness for it.