The whole story is in dispute. The earliest copies of the New Testament scriptures do NOT include any of the story from which the casting of stones quotes are drawn.
And yet there are substantial arguments for believing it to be part of the original Gospel of John: