Mishkat al-Masabih 4584
‘Abdallah b. Mas'ud reported God’s messenger as saying:
"Taking evil omens is polytheism (saying it three times). None of us fails to be affected by it, but God removes such influence by trust in Him." 

Abu Dawud and Tirmidhi transmitted it. 

Tirmidhi told that he heard Muhammad b. Isma'il* say that Sulaiman b. Harb used to say about this tradition that in his opinion "None of us fails to be affected by it, but God removes such influence by trust in Him" are Ibn Mas'ud’s words.

* i.e. Bukhari.
وَعَنْ عَبْدِ اللَّهِ بْنِ مَسْعُودٍ عَنْ رَسُولِ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ قَالَ: «الطِّيَرَةُ شِرْكٌ» قَالَهُ ثَلَاثًا وَمَا مِنَّا إِلَّا وَلَكِنَّ اللَّهَ يُذْهِبُهُ بِالتَّوَكُّلِ. رَوَاهُ أَبُو دَاوُدَ وَالتِّرْمِذِيُّ وَقَالَ: سَمِعْتُ مُحَمَّدَ بْنَ إِسْمَاعِيلَ يَقُولُ: كَانَ سُلَيْمَانُ بْنُ حَرْبٍ يَقُولُ فِي هَذَا الْحَدِيثِ: «وَمَا مِنَّا إِلَّا وَلَكِنَّ اللَّهَ يُذْهِبُهُ بِالتَّوَكُّلِ» . هَذَا عِنْدِي قَوْلُ ابْنِ مَسْعُودٍ