Ibn Umar reported: The Messenger of Allah, peace and blessings be upon him, said, “Whoever swears by other than Allah has committed an act of idolatry.”
Source: Sunan Abī Dāwūd 3251
Grade: Sahih (authentic) according to Al-Albani
Ibn Abi al-‘Izz said, “If one’s swearing by other than Allah is intended to adjure Allah, that is also forbidden, as stating an oath by a created being for a created being is not permissible, so how can it be for the Creator?”
Source: Sharḥ al-‘Aqīdah al-Ṭaḥāwịyah 1/297
عَنْ ابْن عُمَر قَالَ قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ مَنْ حَلَفَ بِغَيْرِ اللَّهِ فَقَدْ أَشْرَكَ
3251 سنن أبي داود كتاب الأيمان والنذور باب في كراهية الحلف بالآباء
3251 المحدث الألباني خلاصة حكم المحدث صحيح في صحيح أبي داود
قال ابن أبي العز وَإِنْ كَانَ يعنى الْحَلِف بِغَيْر اللَّهِ مُرَادُهُ الْإِقْسَامَ عَلَى اللَّهِ فَذَلِكَ مَحْذُورٌ أَيْضًا لِأَنَّ الْإِقْسَامَ بِالْمَخْلُوقِ عَلَى الْمَخْلُوقِ لَا يَجُوزُ فَكَيْفَ عَلَى الْخَالِقِ
1/297 شرح العقيدة الطحاوية