Hadithcore
Al-Adab Al-Mufrad, 1019

'Ali ibn 'Abdullah was heard expressing his dislike for chess and said, "Do not greet someone who plays it. It is a kind of gambling."

حَدَّثَنَا إِبْرَاهِيمُ بْنُ الْمُنْذِرِ قَالَ‏:‏ حَدَّثَنِي مَعْنُ بْنُ عِيسَى قَالَ‏:‏ حَدَّثَنِي أَبُو رُزَيْقٍ، أَنَّهُ سَمِعَ عَلِيَّ بْنَ عَبْدِ اللهِ يَكْرَهُ الأَسْبِرَنْجَ وَيَقُولُ‏:‏ لاَ تُسَلِّمُوا عَلَى مَنْ لَعِبَ بِهَا، وَهِيَ مِنَ الْمَيْسِرِ‏.‏

References2 variants
In-Book Reference
Book 42, Hadith 56
English Reference
Book 42, Hadith 1019