It is narrated from Imam Sa'id bin al-Musayyib (may Allah have mercy on him) "that he saw no harm in a contest between two men in which this one takes part in the race and that one too, provided that they bring in a third party between them; if that third party wins, he becomes entitled to the prize. And he disliked that they should part on such a matter without that (third party)." Through another chain, Imam Sa'id bin al-Musayyib (may Allah have mercy on him) said: "There is no harm in betting on horse races when there is among them a horse that is not inferior to them in quality; if it wins, the prize will be its owner's, and if it loses, there will be no financial liability on him." Imam al-Bayhaqi recorded it in his Sunan, with the saying of Imam Sa'id bin al-Musayyib (may Allah have mercy on him): "There is no harm in a horse-race contest when a muhallil (third party) is included among them; so if he wins he takes the prize, and if he loses there is no penalty on him." Likewise, the jurists of Madinah whose views are regarded as authoritative used to say: "Betting between horses is permissible provided that a muhallil is brought in between them; if he comes first he takes the prize, and if he loses there is no financial burden on him; and the muhallil horse should be equal to the other horses in speed and excellence." Imam al-Bayhaqi recorded this narration in his Sunan.