Abdullah ibn Amr reported: The Messenger of Allah, peace and blessings be upon him, said, “Whoever turns back from something due to seeing an omen, he has committed idolatry.” They said, “O Messenger of Allah, what is the expiation for that?” The Prophet said, “That he says: O Allah, there is no good but Your good, no omen but Your omen, there is no God besides You.”
Source: Musnad Aḥmad 7045
Grade: Hasan (fair) according to Al-Arna’ut
عَنْ عَبْدِ اللَّهِ بْنِ عَمْرٍو قَالَ قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ مَنْ رَدَّتْهُ الطِّيَرَةُ مِنْ حَاجَةٍ فَقَدْ أَشْرَكَ قَالُوا يَا رَسُولَ اللَّهِ مَا كَفَّارَةُ ذَلِكَ قَالَ أَنْ يَقُولَ أَحَدُهُمْ اللَّهُمَّ لَا خَيْرَ إِلَّا خَيْرُكَ وَلَا طَيْرَ إِلَّا طَيْرُكَ وَلَا إِلَهَ غَيْرُكَ
7045 مسند أحمد بن حنبل
11/623 المحدث شعيب الأرناؤوط خلاصة حكم المحدث حسن في تخريج المسند لشعيب