The Prophet (ﷺ) said: If one enters a horse with two others when he is not certain that it cannot be beaten, it is not gambling; but when one enters a horse with two others when he is certain it cannot be beaten, it is gambling.
Sunan Abi Dawud Book 15, Hadith 103