I heard the Messenger of Allah ﷺ say, "The one who plays with dice and then stands to pray is like the one who performs ablution with pus and the blood of swine and then stands to pray."
حدثنا مكي بن إبراهيم حدثنا الجعيد عن موسى بن عبد الرحمن الخطمي أنه سمع محمد بن كعب وهو يسأل عبد الرحمن يقول أخبرني ما سمعت أباك يقول عن رسول الله ﷺ فقال
سمعت رسول الله ﷺ يقول مثل الذي يلعب بالنرد ثم يقوم فيصلي مثل الذي يتوضأ بالقيح ودم الخنزير ثم يقوم فيصلي
No references are available.
Its isnad is daif, due to Musa bin Abdul-Rahman Khatmi being unknown, as noted in Taajil. But the hadith itself is sahih, as previously mentioned at 22875 and its cross-references.