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.
suyuti:5700a

when a man cures anything, the curse goes up to heaven and the gates of heaven are locked against it. Then it comes down to the earth and its gates are locked against it. Then it goes right and left, and if it finds no place of entrance it returns to the thing which was cursed, and if it finds no place of entrance it returns to the thing which was cursed, and if it deserves what was said (it enters it), otherwise it returns to the one who uttered it. Abu Dawud said : Marwan b. Muhammad said: He is Rabah b. al-Walid who heard from him (nimran). He (Marwan b. Muhammad) said: Yahya b. Hussain was confused in it. (Using translation from Abū Dāʾūd 4905)   

السيوطي:٥٧٠٠a

"إِنَّ الْعَبْدَ إِذا لَعَنَ شيئًا صَعدَتْ اللَّعْنَةُ إِلى السَّمَاءِ فَتُغْلَقُ أَبْوَابُ السَّمَاءِ دُونَها ثمَّ تَهْبط إِلى الأَرْضِ فَتُغْلَقُ أَبْوَابُها دُونهَا، ثُمَّ تَأخُذُ يَمِينًا وَشِمَالًا فَإِذا لَمْ تَجِدْ مَسَاغًا رَجَعَتْ إِلى الَّذِي لُعِنَ فإِنْ كَانَ لِذَلِكَ أَهْلًا، وَإِلَّا رَجَعَتْ إِلى قَائِلِها".  

[د] أبو داود [طب] الطبرانى في الكبير [هب] البيهقى في شعب الإيمان عن أبي الدرداء

See similar narrations below:

Collected by Abū Dāwūd
abudawud:4905Aḥmad b. Ṣāliḥ > Yaḥyá b. Ḥassān > al-Walīd b. Rabāḥ > Nimrān > Um al-Dardāʾ > Abū al-Dardāʾ

when a man cures anything, the curse goes up to heaven and the gates of heaven are locked against it. Then it comes down to the earth and its gates are locked against it. Then it goes right and left, and if it finds no place of entrance it returns to the thing which was cursed, and if it finds no place of entrance it returns to the thing which was cursed, and if it deserves what was said (it enters it), otherwise it returns to the one who uttered it. Abu Dawud said : Marwan b. Muhammad said: He is Rabah b. al-Walid who heard from him (nimran). He (Marwan b. Muhammad) said: Yahya b. Hussain was confused in it.  

أبو داود:٤٩٠٥حَدَّثَنَا أَحْمَدُ بْنُ صَالِحٍ حَدَّثَنَا يَحْيَى بْنُ حَسَّانَ حَدَّثَنَا الْوَلِيدُ بْنُ رَبَاحٍ قَالَ سَمِعْتُ نِمْرَانَ يَذْكُرُ عَنْ أُمِّ الدَّرْدَاءِ قَالَتْ سَمِعْتُ أَبَا الدَّرْدَاءِ يَقُولُ

قَالَ رَسُولُ اللَّهِ ﷺ إِنَّ الْعَبْدَ إِذَا لَعَنَ شَيْئًا صَعِدَتِ اللَّعْنَةُ إِلَى السَّمَاءِ فَتُغْلَقُ أَبْوَابُ السَّمَاءِ دُونَهَا ثُمَّ تَهِبْطُ إِلَى الأَرْضِ فَتُغْلَقُ أَبْوَابُهَا دُونَهَا ثُمَّ تَأْخُذُ يَمِينًا وَشِمَالاً فَإِذَا لَمْ تَجِدْ مَسَاغًا رَجَعَتْ إِلَى الَّذِي لُعِنَ فَإِنْ كَانَ لِذَلِكَ أَهْلاً وَإِلاَّ رَجَعَتْ إِلَى قَائِلِهَا  

قَالَ أَبُو دَاوُدَ قَالَ مَرْوَانُ بْنُ مُحَمَّدٍ هُوَ رَبَاحُ بْنُ الْوَلِيدِ سَمِعَ مِنْهُ وَذَكَرَ أَنَّ يَحْيَى بْنَ حَسَّانَ وَهِمَ فِيهِ