Sunan Ibn Majah, Book 33, Hadith 107 (Ibn Majah 3765)

It was narrated from Sulaiman bin Buraidah from his father that the Prophet(ﷺ) said:

"Whoever plays backgammon, it is as if he dipped his hand in the flesh and blood of a pig."