This is impermissible, because it is a form of
prohibited betting which falls under the category of gambling, about which Allah says,
O you who believe! Intoxicants (all kinds of alcoholic drinks), and gambling, and Al-Ansâb, and Al-Azlâm (arrows for seeking luck or decision) are an abomination of Shaitan’s (Satan) handiwork. So avoid (strictly all) that (abomination) in order that you may be successful.
(Surah Al-Ma'idah, 5: 90). Thus, it is considered taking the money of others without due right. May Allah grant us success. May peace and blessings be upon our Prophet Muhammad, his family, and Companions.