1 verses of the King James Version have both "needed" and "what".
John 2:25 And needed not that any should testify of man: for he knew what was in man.
In other translations: ASV Darby Webster DRC Geneva