Sahih al-Bukhari Book 68, Hadith 65
Those involved in a case of Lian were mentioned before Allah's Messenger (ﷺ) `Asim bin Adi said
something about that and then left. Later on a man from his tribe came to him and told him that he had
found another man with his wife. On that `Asim said, "I have not been put to task except for what I
have said (about Lian)." `Asim took the man to Allah's Messenger (ﷺ) and he told him of the state in which
he found his wife. The man was pale, thin and lank-haired, while the other man whom he had found
with his wife was brown, fat with thick calves and curly hair. Allah's Messenger (ﷺ) said, "O Allah! Reveal
the truth." Then the lady delivered a child resembling the man whom her husband had mentioned he
had found with her. So Allah's Messenger (ﷺ) ordered them to carry out Lien. A man from that gathering said
to Ibn `Abbas, "Was she the same lady regarding whom Allah's Messenger (ﷺ) said, 'If I were to stone to
death someone without witnesses, I would have stoned this lady'?" Ibn `Abbas said, "No, that was
another lady who, though being a Muslim, used to arouse suspicion because of her outright
misbehavior."
The Prophet (ﷺ) made a man and his wife carry out Lian, and the husband repudiated her child. So the Prophet got them separated (by divorce) and decided that the child belonged to the mother only.
Rifa`a Al-Qurazi married a lady and then divorced her whereupon she married another man. She came to the Prophet (ﷺ) and said that her new husband did not approach her, and that he was completely impotent. The Prophet (ﷺ) said (to her), "No (you cannot remarry your first husband) till you taste the second husband and he tastes you (i.e. till he consummates his marriage with you).