وعن عُروة بن عامر - رضي الله عنه - قال: ذُكِرَتِ الطِّيَرَةُ عِنْدَ رَسولِ اللهِ - صلى الله عليه وسلم - فقالَ: «أحْسَنُهَا الفَألُ. وَلاَ تَرُدُّ مُسْلِمًا فإذا رَأى أحَدُكُمْ ما يَكْرَهُ، فَليْقلْ: اللَّهُمَّ لاَ يَأتِي بِالحَسَناتِ إلاَّ أنْتَ، وَلاَ يَدْفَعُ السَّيِّئَاتِ إلاَّ أنْتَ، وَلاَ حَوْلَ وَلاَ قُوَّةَ إلاَّ بِكَ» حديث صحيح رواه أبو داود بإسناد صحيح.
It is narrated from Sayyiduna Urwah bin Amir (may Allah be pleased with him) that he said: Taking evil omens was mentioned in the presence of the Messenger of Allah (peace and blessings be upon him), and he (peace and blessings be upon him) said: "The best of it is the good omen, and it (the evil omen) does not turn a Muslim back (from his task). So when one of you sees something he dislikes, let him say: "O Allah, none brings good things except You, and none averts bad things except You, and there is no might (to avoid evil) and no power (to do good) except through You.""
(This is a sahih hadith; it was narrated by Abu Dawud with a sahih chain)
Related hadith on this topic