It was narrated that Qasim bin Muhammad said:
"Ibn `Abbas mentioned two people who had engaged in the process of Li`an. Ibn Shaddad said to him: 'Is this the one of whom the Messenger of Allah (ﷺ) said: "If I were to stone anyone without proof I would have stoned so-and-so." Ibn`Abbas said: 'No, that was a woman who, (although she was a Muslim), used to expose herself.'"
English reference: Vol. 3, Book 20, Hadith 2560
Arabic reference: Book 20, Hadith 2657