Riyad as-Salihin #1556 · The Book of the Prohibited actions

Riyad as-SalihinAbudDarda
Riyad as-Salihin · Book 18 · The Book of the Prohibited actions
Riyad as-Salihin · كتاب 18 · كتاب الأمور المنهي عنها
The Messenger of Allah (صلى الله عليه وسلم) said, "When a person curses somebody or something, the curse goes up to heaven and the gates of heaven get closed. Then it comes down to the earth and its gates get closed. Then it turns right and left, and if it does not find an entrance to go anywhere, it returns to the person or thing that was cursed; if he or it deserves to be cursed; otherwise it returns to the person who uttered it." [Abu Dawud] .
وعن أبي الدرداء رضي الله عنه قال: قال رسول الله صلى الله عليه وسلم :
"إن العبد إذا لعن شيئًا، صعدت اللعنة إلى السماء، فتغلق أبواب السماء دونها، ثم تهبط إلى الأرض، فتغلق أبوابها دونها، ثم تأخذ يمينًا وشمالا، فإذا لم تجد مساغًا رجعت إلى الذي لُعن، فإن كان أهلا لذلك، وإلا رجعت إلى قائلها" . رواه أبو داود.
Reference : Riyad as-Salihin 1556In-book reference : Book 18, Hadith 46