Abu Labid (may Allah have mercy on him) narrates: I asked Sayyiduna Anas (may Allah be pleased with him): "O Abu Hamzah! Did you people use to bet on races in the time of the Messenger of Allah (peace and blessings be upon him)? Did the Messenger of Allah (peace and blessings be upon him) also place wagers?" He said: "Yes, by Allah! He (peace and blessings be upon him) placed a wager on a mare called Sabhah; she came in ahead of all, and he (peace and blessings be upon him) was very pleased with that."
Imam al-Daraqutni (may Allah have mercy on him) narrated it from Ali bin Abdullah bin Mubashshir (may Allah have mercy on him), from Ahmad bin Sinan (may Allah have mercy on him), from Yazid bin Harun (may Allah have mercy on him), from Sa'id bin Zayd (may Allah have mercy on him).
And also from Ali (may Allah have mercy on him), from Ahmad bin Sinan (may Allah have mercy on him), from Affan bin Muslim (may Allah have mercy on him), from Sa'id bin Zayd (may Allah have mercy on him), from al-Zubayr (may Allah have mercy on him).