When taking omens was mentioned in the presence of the Prophet ﷺ, he said: The best type is the good omen, and it does not turn back a Muslim. If one of you sees anything he dislikes, he should say: O Allah, no one brings good things except Thee, and no one averts evil things except Thee and there is no might and power but in Allah. (Using translation from Abū Dāʾūd 3919)
ذُكِرَتِ الطِّيَرَةُ عِنْدَ النَّبِيِّ ﷺ فَقَالَ أَحْسَنُهَا الْفَالُ وَلَا تَرُدَّ مُسْلِمًا فَإِذَا رَأَيْتَ مِنَ الطِّيَرَةِ مَا تَكْرَهُ فَقُلْ اللهُمَّ لَا يَأْتِي بِالْحَسَنَاتِ إِلَّا أَنْتَ وَلَا يَدْفَعُ السَّيِّئَاتِ إِلَّا أَنْتَ وَلَا حَوْلَ وَلَا قُوَّةَ إِلَّا بِكَ