Ibn Umar heard a man say, "By the Kaabah." He said to him, "Do not swear by anything other than Allah, for I heard the Messenger of Allah ﷺ say, 'Whoever swears by anything other than Allah has disbelieved and committed shirk.'"
حدثنا سليمان بن حيان عن الحسن بن عبيد الله عن سعد بن عبيدة
رجلا يقول والكعبة فقال لا تحلف بغير الله فإني سمعت رسول الله ﷺ يقول من حلف بغير الله فقد كفر وأشرك