and because he didn't need for anyone to testify concerning man; for he himself knew what was in man.

 So Mary came to Jesus to tell him that it was so. The King James Version translation of Jesus' reply makes it sound very discourteous. It makes him say: "Woman, what have I to do with thee?" That is indeed a translation of the words, but it does not in any way give the tone. 