أَخْبَرَنَا أَبُو مُحَمَّدٍ الْحَسَنُ بْنُ عَلِيِّ بْنِ الْمُؤَمَّلِ ، حَدَّثَنَا أَبُو عُثْمَانَ عَمْرُو بْنُ عَبْدِ اللَّهِ الْبَصْرِيُّ ، حَدَّثَنَا مُحَمَّدُ بْنُ عَبْدِ الْوَهَّابِ أَبُو أَحْمَدَ ، حَدَّثَنَا يَعْلَى بْنُ عُبَيْدٍ ، حَدَّثَنَا الْأَعْمَشُ ، عَنْ حَبِيبِ بْنِ أَبِي ثَابِتٍ ، عَنْ عُرْوَةَ بْنِ عَامِرٍ ، قَالَ : ذُكِرَتِ الطِّيَرَةُ عِنْدَ رَسُولِ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ فَقَالَ : " أَصْدَقُهَا الْفَالُ وَلَا تَرُدُّ مُسْلِمًا ، فَإِذَا رَأَيْتَ مِنَ الطَّائِرِ مَا تَكْرَهُ ، فَقُلِ : اللَّهُمَّ لَا يَأْتِي بِالْحَسَنَاتِ إِلَّا أَنْتَ ، وَلَا يَدْفَعُ السَّيِّئَاتِ إِلَّا أَنْتَ ، وَلَا حَوْلَ وَلَا قُوَّةَ إِلَّا بِاللَّهِ " .
Sayyiduna Urwah bin Amir (may Allah be pleased with him) narrates that bad omens were mentioned in the presence of the Messenger of Allah (peace and blessings be upon him), so he (peace and blessings be upon him) said: "The truest of it is the good omen, and let it (a bad omen) not turn a Muslim back (from his task). So when you see something from a bird that you dislike, then say: 'O Allah, none brings good things except You, and none averts evil things except You, and there is no power to avoid sin and no strength to do good except through Allah.'"
Related hadith on this topic