Sahih Bukhari – Hadith No : 1617

Narrated `Aisha: The people used to fast on ‘Ashura (the tenth day of the month of Muharram) before the fasting of Ramadan was made obligatory. And on that day the Ka`ba used to be covered with a cover. When Allah made the fasting of the month of Ramadan compulsory, Allah’s Apostle said, “Whoever wishes to fast (on the day of ‘Ashura’) may do so; and whoever wishes to leave it can do so.”

Hadith In Arabic Text :

حدثنا يحيى بن بكير، حدثنا الليث، عن عقيل، عن ابن شهاب، عن عروة، عن عائشة رضى الله عنها ‏.‏ وحدثني محمد بن مقاتل، قال أخبرني عبد الله هو ابن المبارك قال أخبرنا محمد بن أبي حفصة، عن الزهري، عن عروة، عن عائشة رضى الله عنها قالت كانوا يصومون عاشوراء قبل أن يفرض رمضان، وكان يوما تستر فيه الكعبة، فلما فرض الله رمضان قال رسول الله صلى الله عليه وسلم ‏”‏ من شاء أن يصومه فليصمه، ومن شاء أن يتركه فليتركه ‏”‏‏.‏

Chapter : Hajj (Pilgrimage) – كتاب الحج