Abdullah bin Masud reported,

The Messenger of Allah ﷺ said, "Believing in evil omens is a form of polytheism. None of us is free from such thoughts, but Allah removes them through reliance upon Him."In another wording, "Believing in evil omens is polytheism, believing in evil omens is polytheism," repeating it three times.

Azami 14862

Sahih

عن عبد الله بن مسعود قال

قال رسول الله ﷺ: الطيرة من الشرك، وما منا تطير، ولكن الله يذهبه بالتوكل وفي لفظ: الطيرة شرك، الطيرة شرك ثلاثا.

الأعظمي 14862صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Superior moral conduct
Chapter
Contagion and evil omens
Section
Dislike of bad omens in Islam, which is pessimism
Numbering
Jami al-Kamil 14862 (2nd edition)
Azami 14862