Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
bayhaqi:19819Abū ʿAbdullāh al-Ḥāfiẓ > al-Ḥusayn b. Muḥammad al-Dārimī > ʿAbd al-Raḥman / Ibn Muḥammad al-Ḥanẓalī > al-Rabīʿ b. Sulaymān > al-Shāfiʿī

[Machine] I heard Ash-Shafi'i say, "Whoever takes an oath by one of the names of Allah and breaks it, then he must make expiation, because the name of Allah is uncreated. And whoever takes an oath by the Kaaba or by Safa and Marwa, then there is no expiation upon him, because they are created, unlike the name of Allah."  

البيهقي:١٩٨١٩أَخْبَرَنَا أَبُو عَبْدِ اللهِ الْحَافِظُ وَأَخْبَرَنِي الْحُسَيْنُ بْنُ مُحَمَّدٍ الدَّارِمِيُّ أنبأ عَبْدُ الرَّحْمَنِ يَعْنِي ابْنَ مُحَمَّدٍ الْحَنْظَلِيَّ حَدَّثَنِي الرَّبِيعُ بْنُ سُلَيْمَانَ قَالَ

سَمِعْتُ الشَّافِعِيَّ يَقُولُ مَنْ حَلَفَ بِاسْمٍ مِنْ أَسْمَاءِ اللهِ فَحَنِثَ فَعَلَيْهِ الْكَفَّارَةُ لِأَنَّ اسْمَ اللهِ غَيْرُ مَخْلُوقٍ وَمَنْ حَلَفَ بِالْكَعْبَةِ أَوْ بِالصَّفَا وَالْمَرْوَةِ فَلَيْسَ عَلَيْهِ الْكَفَّارَةُ لِأَنَّهُ مَخْلُوقٌ وَذَاكَ غَيْرُ مَخْلُوقٍ