Sahih Muslim
The Book of Poetry (Kitab Al-Shir)
Book Number: 028 / Hadith Number: 5612
Buraida reported on the authority of his father that Allah's Apostle (may peace be upon him) said: He who played chess is like one who dyed his hand with the flesh and blood of swine.