Muwatta Imam Malik Book of Jihad, Hadith 46
Yahya related to me from Malik that Yahya ibn Said heard Said ibn al-Musayyab say, "There is no harm in placing stakes on horses if a third horse enters it. The winner takes the stake, and there is no fine against the loser."
وَحَدَّثَنِي عَنْ مَالِكٍ، عَنْ يَحْيَى بْنِ سَعِيدٍ، أَنَّهُ سَمِعَ سَعِيدَ بْنَ الْمُسَيَّبِ، يَقُولُ لَيْسَ بِرِهَانِ الْخَيْلِ بَأْسٌ إِذَا دَخَلَ فِيهَا مُحَلِّلٌ فَإِنْ سَبَقَ أَخَذَ السَّبَقَ وَإِنْ سُبِقَ لَمْ يَكُنْ عَلَيْهِ شَىْءٌ .