The Prophet ﷺ said, "Whoever enters a horse in a race between two other horses without being certain that it will win, there is no harm in it. But whoever enters a horse between two others while being certain that it will win, that is gambling."
حدثنا يزيد أخبرنا سفيان بن حسين عن الزهري عن سعيد بن المسيب
عن النبي ﷺ قال من أدخل فرسا بين فرسين وهو لا يأمن أن يسبق فلا بأس به ومن أدخل فرسا بين فرسين قد أمن أن يسبق فهو قمار