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:19877[Chain 1] Abū ʿAbdullāh al-Ḥāfiẓ > Muḥammad b. ʿAbdullāh al-Ṣaffār > Abū al-Muthanná from my father from my father > Shuʿbah [Chain 2] Abū al-Muthanná > ʿAbd al-Raḥman b. al-Mubārak > Khālid b. al-Ḥārith > Shuʿbah > ʿAṭāʾ > Abū al-Bakhtarī > ʿUbaydah > Ibn al-Zubayr

[Machine] The Prophet ﷺ narrated that a man swore by Allah, who is the only deity worthy of worship, or he said that the man swore by Allah falsely. He was forgiven due to his sincerity towards Allah. However, this is a false narration attributed to Shu'bah, and the correct narration is from the majority and Ubaydah. Ubaydah died before Ibn Zubayr, as claimed by historians, by nine years, so his narration cannot be considered. Only Allah knows best. Ata' ibn al-Sa'ib narrated this hadith alone, with differences in its chain of narrators, and it was also narrated from Thabit's hadith through Anas, but it is not strong.  

البيهقي:١٩٨٧٧كَمَا أَخْبَرَنَا أَبُو عَبْدِ اللهِ الْحَافِظُ أنبأ مُحَمَّدُ بْنُ عَبْدِ اللهِ الصَّفَّارُ ثنا أَبُو الْمُثَنَّى حَدَّثَنِي أَبِي ثنا أَبِي عَنْ شُعْبَةَ ح قَالَ وَحَدَّثَنَا أَبُو الْمُثَنَّى ثنا عَبْدُ الرَّحْمَنِ بْنُ الْمُبَارَكِ ثنا خَالِدُ بْنُ الْحَارِثِ ثنا شُعْبَةُ عَنْ عَطَاءٍ عَنْ أَبِي الْبَخْتَرِيِّ عَنْ عُبَيْدَةَ عَنِ ابْنِ الزُّبَيْرِ ؓ عَنِ

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