Narrated Ibn `Umar: Fasting was observed on the day of 'Ashura' (i.e. 10th of Muharram) by the people of the Pre-lslamic Period. But when (the order of compulsory fasting) in the month of Ramadan was revealed, the Prophet said, "It is up to one to fast on it (i.e. day of 'Ashura') or not."
The chain is ordered from the source of the saying to the compiler: 1 = the speaker/first transmitter, the following links those who passed it on in turn, and at the bottom al-Bukhari who compiled the work. Click a narrator to list every hadith in which he appears; the number in parentheses is how many hadiths across the collections on this site the narrator appears in.