ABUDAWUD 4438:
from a man —
A man committed fornication with a woman. So the Messenger of Allah ﷺ ordered regarding him and the prescribed punishment of flogging was inflicted on him. He was then informed that he was married. So he commanded regarding him and he was stoned to death. Abu Dawud said: This tradition has been transmitted by Muhammad b. Bakr al-Barsani from Ibn Juraij as a statement of Jabir, and Abu 'Asim has transmitted it from Ibn Juraid similar to that of Ibn Wahb. He did not mention the Prophet ﷺ. But he said: A man committed fornication, but did not know that he was married ; so he was flogged. It was then known that he was married, so he was stoned to death.
أبو داود ٤٤٣٨:
عن ا من —
أَنَّ رَجُلاً زَنَى بِامْرَأَةٍ فَأَمَرَ بِهِ النَّبِيُّ ﷺ فَجُلِدَ الْحَدَّ ثُمَّ أُخْبِرَ أَنَّهُ مُحْصَنٌ فَأَمَرَ بِهِ فَرُجِمَ
hadithunlocked.com