John 5:6
When Jesus saw him lying, and knew that he had been now a long time in that case,—Jesus knew either by inquiry or from his superhuman power of knowing things. The context does not show the source of this knowledge. His helplessness appealed to the Master.
he saith unto him, Wouldest thou be made whole?—Jesus doubtless knew he wished to be healed and asked this question by way of introduction to the sufferer.