Both the Qur’an and the Blessed Injeel agree that Hazrat Isa ( ع ) knows hidden things.

وَرَسُولاً إِلَى بَنِي إِسْرَائِيلَ أَنِّي قَدْ جِئْتُكُمْ بِآَيَةٍ مِنْ رَبِّكُمْ أَنِّي أَخْلُقُ لَكُمْ مِنَ الطِّينِ كَهَيْئَةِ الطَّيْرِ فَأَنْفُخُ فِيهِ فَيَكُونُ طَيْرًا بِإِذْنِ اللَّهِ وَأُبْرِئُ الأَكْمَهَ وَالأَبْرَصَ وَأُحْيِي الْمَوْتَى بِإِذْنِ اللَّهِ وَأُنَبِّئُكُمْ بِمَا تَأْكُلُونَ وَمَا تَدَّخِرُونَ فِي بُيُوتِكُمْ إِنَّ فِي ذَلِكَ لآيَةً لَكُمْ إِنْ كُنْتُمْ مُؤْمِنِينَ
a messenger to the people of Israel, “I have brought you a sign from your Lord: I create a bird for you from clay and breathe into it and it will be a [living] bird by Allah’s permission. I heal the man born blind and the leper and give life to the dead by Allah’s permission. I tell you what you eat and what you store in your houses. That is truly a sign for you, if you believe. (Aal Imran 3:49)
Holy Qur’an | Al Imran 3:49
καὶ εἰδὼς ὁ Ἰησοῦς τὰς ἐνθυμήσεις αὐτῶν εἶπεν, Ἱνατί ἐνθυμεῖσθε πονηρὰ ἐν ταῖς καρδίαις ὑμῶν;
And Jesus, knowing their thoughts, said, “Why do you think evil in your hearts?”
Blessed Injeel | Matthew 9:4
Some thoughts
Are there personal secrets you want to keep hidden? You can freely share them with Hazrat Isa ( ع ) because he knows them already, of course.
Are there hidden secrets about life and heaven you would like to know? Hazrat Isa ( ع ) reveals secrets; would you like to ask him to reveal them to you?
Five failed marriages
In the Blessed Injeel (at John 4:1-30, 39-42) we have a record of a time when Hazrat Isa ( ع ) revealed a secret to a foreign woman outside her village.
The Pharisees heard that Hazrat Isa ( ع ) was winning and baptizing more disciples than John. (Actually, Hazrat Isa ( ع ) himself did not baptize anyone; only his disciples did.) So when Hazrat Isa ( ع ) heard what was being said, he left Judea and went back to Galilee; on his way there he had to go through Samaria.
In Samaria he came to a town named Sychar, which was not far from the field that Jacob had given to his son Joseph. Jacob’s well was there, and Jesus, tired out by the trip, sat down by the well. It was about noon.
Hazrat Isa ( ع ) answered, “If you only knew what God gives and who it is that is asking you for a drink, you would ask him, and he would give you life-giving water.”
“Sir,” the woman said, “you don’t have a bucket, and the well is deep. Where would you get that life-giving water? It was our ancestor Jacob who gave us this well; he and his children and his flocks all drank from it. You don’t claim to be greater than Jacob, do you?”
Hazrat Isa ( ع ) answered, “Those who drink this water will get thirsty again, but those who drink the water that I will give them will never be thirsty again. The water that I will give them will become in them a spring which will provide them with life-giving water and give them eternal life.”
“Sir,” the woman said, “give me that water! Then I will never be thirsty again, nor will I have to come here to draw water.”
“Go and call your husband,” Hazrat Isa ( ع ) told her, “and come back.”
“I don’t have a husband,” she answered.
Hazrat Isa ( ع ) replied, “You are right when you say you don’t have a husband. You have been married to five men, and the man you live with now is not really your husband. You have told me the truth.”
“I see you are a prophet, sir,” the woman said. “My Samaritan ancestors worshiped God on this mountain, but you Jews say that Jerusalem is the place where we should worship God.”
Hazrat Isa ( ع ) said to her, “Believe me, woman, the time will come when people will not worship the Father either on this mountain or in Jerusalem. You Samaritans do not really know whom you worship; but we Jews know whom we worship, because it is from the Jews that salvation comes. But the time is coming and is already here, when by the power of God’s Spirit people will worship the Father as he really is, offering him the true worship that he wants. God is Spirit, and only by the power of his Spirit can people worship him as he really is.”
The woman said to him, “I know that the Messiah will come, and when he comes, he will tell us everything.”
Hazrat Isa ( ع ) answered, “I am he; I who am talking with you.”
At that moment Hazrat Isa ( ع ) disciples returned, and they were greatly surprised to find him talking with a woman. But none of them said to her, “What do you want?” or asked him, “Why are you talking with her?”
Then the woman left her water jar, went back to the town, and said to the people there, “Come and see the man who told me everything I have ever done. Could he be the Messiah?”
So they left the town and went to Hazrat Isa ( ع ) …
Many of the Samaritans in that town believed in Hazrat Isa ( ع ) because the woman had said, “He told me everything I have ever done.”
So when the Samaritans came to him, they begged him to stay with them, and Hazrat Isa ( ع ) stayed there two days.
Many more believed because of his message, and they told the woman, “We believe now, not because of what you said, but because we ourselves have heard him, and we know that he really is the Saviour of the World.”