Abdullah bin Umar reported,

"No, by the Kaabah."Ibn Umar said to him, "I heard the Messenger of Allah ﷺ say, 'Whoever swears by anything other than Allah has committed shirk.'"

Azami 7080

Sahih

عن عبد الله بن عمر أنه سمع رجلا يحلف

لا والكعبة. فقال له ابن عمر: إني سمعت رسول الله ﷺ يقول: من حلف بغير الله فقد أشرك.

الأعظمي 7080صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Oaths and vows
Chapter
Faith
Section
Discouragement from swearing by other than Allah
Numbering
Jami al-Kamil 7080 (2nd edition)
Azami 7080