Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
muslim:2598aSūwayd b. Saʿīd > Ḥafṣ b. Maysarah > Zayd b. Aslam > ʿAbd al-Malik b. Marwān Baʿath > Um al-Dardāʾ Biʾanjād from ʿIndih Falammā

I heard you cursing your servant during the night when you called him, and she said: I heard Abu Darda' as saying that Messenger of Allah ﷺ said: The invoker of curse would neither be intercessor nor witness on the Day of Resurrection.  

مسلم:٢٥٩٨aحَدَّثَنِي سُوَيْدُ بْنُ سَعِيدٍ حَدَّثَنِي حَفْصُ بْنُ مَيْسَرَةَ عَنْ زَيْدِ بْنِ أَسْلَمَ أَنَّ عَبْدَ الْمَلِكِ بْنَ مَرْوَانَ بَعَثَ إِلَى أُمِّ الدَّرْدَاءِ بِأَنْجَادٍ مِنْ عِنْدِهِ فَلَمَّا

أَنْ كَانَ ذَاتَ لَيْلَةٍ قَامَ عَبْدُ الْمَلِكِ مِنَ اللَّيْلِ فَدَعَا خَادِمَهُ فَكَأَنَّهُ أَبْطَأَ عَلَيْهِ فَلَعَنَهُ فَلَمَّا أَصْبَحَ قَالَتْ لَهُ أُمُّ الدَّرْدَاءِ سَمِعْتُكَ اللَّيْلَةَ لَعَنْتَ خَادِمَكَ حِينَ دَعَوْتَهُ فَقَالَتْ سَمِعْتُ أَبَا الدَّرْدَاءِ يَقُولُ قَالَ رَسُولُ اللَّهِ ﷺ لاَ يَكُونُ اللَّعَّانُونَ شُفَعَاءَ وَلاَ شُهَدَاءَ يَوْمَ الْقِيَامَةِ