Abdullah ibn Mas’ud reported: The Prophet, peace and blessings be upon him, said, “When a curse is uttered, it is directed to the one for whom it was uttered. If it finds a path and a way, it is allowed to proceed. Otherwise, it returns to its Lord, saying: O Lord, such a person directed me to another, but I did not find a way and a path, so what do you command? Allah will say: Return against the one from whom you came.”
Source: Musnad Aḥmad 3876
Grade: Hasan li ghayrihi (fair due to external evidence) according to Al-Albani
عَنْ عَبْدِ الله بْنِ مَسْعُودٍ عَنِ النَّبِيِّ صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ قَالَ إِذَا وُجِّهَتْ اللَّعْنَةُ تَوَجَّهَتْ إِلَى مَنْ وُجِّهَتْ إِلَيْهِ فَإِنْ وَجَدَتْ فِيهِ مَسْلَكًا وَوَجَدَتْ سَبِيلًا حَلَّتْ بِهِ وَإِلَّا جَاءَتْ إِلَى رَبِّهَا فَقَالَتْ يَا رَبِّ إِنَّ فُلَانًا وَجَّهَنِي إِلَى فُلَانٍ وَإِنِّي لَمْ أَجِدْ عَلَيْهِ سَبِيلًا وَلَمْ أَجِدْ فِيهِ مَسْلَكًا فَمَا تَأْمُرُنِي فَقَالَ ارْجِعِي مِنْ حَيْثُ جِئْتِ
3876 مسند أحمد بن حنبل
2793 المحدث الألباني خلاصة حكم المحدث حسن لغيره في صحيح الترغيب