Hadithcore
Al-Adab Al-Mufrad, 319
sahih· Al-Albani

'A'isha reported that Abu Bakr cursed one of his slaves and the Prophet, (ﷺ), said, "Abu Bakr! The cursers and the true! No, by the Lord of the Ka'ba," and he repeated that two or three times. That very same day Abu Bakr freed one of his slaves. The Prophet, (ﷺ), came and said, "Do not do that again (i.e. curse someone)."

حَدَّثَنَا أَحْمَدُ بْنُ يَعْقُوبَ قَالَ‏:‏ حَدَّثَنِي يَزِيدُ بْنُ الْمِقْدَامِ بْنِ شُرَيْحٍ، عَنْ أَبِيهِ، عَنْ جَدِّهِ قَالَ‏:‏ أَخْبَرَتْنِي عَائِشَةُ، أَنَّ أَبَا بَكْرٍ لَعَنَ بَعْضَ رَقِيقِهِ، فَقَالَ النَّبِيُّ صلى الله عليه وسلم‏:‏ يَا أَبَا بَكْرٍ، اللَّعَّانِينَ وَالصِّدِّيقِينَ‏؟‏ كَلاَّ وَرَبِّ الْكَعْبَةِ، مَرَّتَيْنِ أَوْ ثَلاَثًا، فَأَعْتَقَ أَبُو بَكْرٍ يَوْمَئِذٍ بَعْضَ رَقِيقِهِ، ثُمَّ جَاءَ النَّبِيُّ صلى الله عليه وسلم فَقَالَ‏:‏ لا أَعُودُ‏.‏

References2 variants
In-Book Reference
Book 15, Hadith 11
English Reference
Book 15, Hadith 319