Musnad Ahmad 6072
حَدَّثَنَا سُلَيْمَانُ بْنُ حَيَّانَ ، عَنِ الْحَسَنِ بْنِ عُبَيْدِ اللَّهِ ، عَنْ سَعْدِ بْنِ عُبَيْدَةَ سَمِعَ ابْنُ عُمَرَ رَجُلًا , يَقُولُ: وَالْكَعْبَةِ، فَقَالَ: لَا تَحْلِفْ بِغَيْرِ اللَّهِ، فَإِنِّي سَمِعْتُ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ , يَقُولُ:" مَنْ حَلَفَ بِغَيْرِ اللَّهِ فَقَدْ كَفَرَ وَأَشْرَكَ".
Sulayman ibn Hayyan narrated to us, from al-Hasan ibn ʿUbaydullah, from Saʿd ibn ʿUbaydah: Ibn ʿUmar heard a man saying: "By the Kaʿbah." He said: "Do not swear by other than Allah, for I heard the Messenger of Allah ﷺ say: 'Whoever swears by other than Allah has disbelieved and associated partners [with Him].'"