Hadithcore
Sunan Abi Dawud, 4905
hasan· Al-Albani

Abu al-Darda’ reported the Messenger of Allah (ﷺ) as saying :

when a man curses 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.

حَدَّثَنَا أَحْمَدُ بْنُ صَالِحٍ، حَدَّثَنَا يَحْيَى بْنُ حَسَّانَ، حَدَّثَنَا الْوَلِيدُ بْنُ رَبَاحٍ، قَالَ سَمِعْتُ نِمْرَانَ، يَذْكُرُ عَنْ أُمِّ الدَّرْدَاءِ، قَالَتْ سَمِعْتُ أَبَا الدَّرْدَاءِ، يَقُولُ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏

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

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

References2 variants
In-Book Reference
Book 43, Hadith 133
English Reference
Book 42, Hadith 4887