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