Abu Labid Limazah bin Zabbar (may Allah have mercy on him) narrates that in the time of al-Hajjaj horses were let loose (for a race), so we said: "If only we could go to the place where the horse-race wagers are held and watch." So we went there. Then we said: "If only we could go to Sayyiduna Anas bin Malik (may Allah be pleased with him) and ask him whether you people used to bet on races in the time of the Messenger of Allah (peace and blessings be upon him)." (One manuscript has the wording "we turned aside," meaning we turned towards him.) So we came to him and asked him, and he said: "Yes, (the Messenger of Allah (peace and blessings be upon him)) placed a wager on a horse of his called Sabhah; it outran all the people, and he (peace and blessings be upon him) was very pleased with that."
Imam Ahmad (may Allah have mercy on him) narrated it like this in his Musnad.
He also narrated it 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).