I heard the Messenger of Allah ﷺ say, "Those given to cursing will not be witnesses nor intercessors on the Day of Resurrection."
سمعت رسول الله ﷺ يقول: إن اللعانين لا يكونون شهداء ولا شفعاء يوم القيامة.
Muslim narrated it in the Book of Righteousness and Maintaining Ties (2598), from Abu Bakr bin Abu Shayba, who said, "Muawiya bin Hisham told us, from Hisham bin Saad, from Zayd bin Aslam and Abu Hazim, from Umm Darda, from Abu Darda," and he mentioned it.