BAYHAQI 16950:
from Jābir —
[Machine] That a man committed adultery with a woman and his chastity was not known, so he was punished with whipping. Then it was revealed that he had been chaste, so he was stoned. This is the wording of the hadith of Al-Bazzaaz, and in another narration of Abu Muslim, it is reported from Jabir that a man committed adultery and was then punished with whipping, and then it was revealed that he had been chaste. Jabir said, "He should be stoned."
البيهقي ١٦٩٥٠:
عن جابر —
أَنَّ رَجُلًا زَنَى بِامْرَأَةٍ فَلَمْ يُعْلَمْ بِإِحْصَانِهِ فَجُلِدَ ثُمَّ عُلِمَ بِإِحْصَانِهِ فَرُجِمَ هَذَا لَفْظُ حَدِيثِ الْبَزَّازِ وَفِي رِوَايَةِ أَبِي مُسْلِمٍ قَالَ عَنْ جَابِرٍ فِي رَجُلٍ زَنَى ثُمَّ جُلِدَ ثُمَّ عُلِمَ بِإِحْصَانِهِ قَالَ يُرْجَمُ
hadithunlocked.com