Sunnah.com : Book 18, Hadith 46
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
إن العبد إذا لعن شيئًا، صعدت اللعنة إلى السماء، فتغلق أبواب السماء دونها، ثم تهبط إلى الأرض، فتغلق أبوابها دونها، ثم تأخذ يمينًا وشمالا، فإذا لم تجد مساغًا رجعت إلى الذي لُعن، فإن كان أهلا لذلك، وإلا رجعت إلى قائلها"
Abu d-Darda' (May Allah be pleased with him) said:
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].
Full reference and source
Sunnah.com : Book 18, Hadith 46 Arabic/English book : Book 18, Hadith 1556
View source on Sunnah.com (opens in a new tab)