"I will pass the same judgment concerning her as the Messenger of Allah did. If she let you do that, I will flog you, but if she did not let you do that, I will stone you (to death)." She had let him do that so he flogged him with one hundred stripes. (One of the narrators) Qatadah said: "I wrote to Habib bin Salim and he wrote back to me with this information."
Sunan an-Nasa'i Book 26, Hadith 166