1536 Then our Lord shows the emotion in his own heart by words; he says, Where have you laid him? Was our Lord really ignorant of the place where he had been buried? It seems not, for just as in his absence he knew, because of his divinity, of Lazarus' death, so in the same way he knew where his tomb was. Why did he ask about something he already knew? I answer that he did not ask as though he did not know, but upon being shown the tomb by the people, he wanted them to admit that Lazarus had died and was buried. In this way he could prevent the miracle from being doubted.
There are also two m...ystical reasons for this. One is that a person who asks a question does not seem to know the things he asks about. Now, Lazarus in his tomb signifies those who are dead in their sins. And so our Lord presents himself as ignorant of where Lazarus is to have us understand that he does not, in a way, know sinners, according to: "I never knew you" (Matt 7:23); and in Genesis God said to Adam, "Where are you?" (3:9). The other reason is that if anyone rises from sin to the state of divine righteousness, it is due to the depths of divine predestination, the depths of which we are ignorant: "For who has known the mind of the Lord, or who has been his counselor?" (Rom 11:34); "For who among them has stood in the council of the Lord to perceive and hear his word" (Jer 23:18). And so our Lord, implying this, acts as one who does not know, since we also do not know this. Thus our Lord's question is given, and the answer of the people, when the Evangelist says, They said to him, Lord, come and see. Come, by showing mercy; and see, by giving your attention: "Consider my affliction and my trouble, and forgive all my sins" (Ps 25:18).
Source: Commentary on John