Did Mary expect Jesus to perform a miracle in John 2:5?
4 “Woman, why do you involve me?” Jesus replied. “My hour has not yet
come.”
The expression appears many times in the OT, some of the verses I have mentioned below, it also appears six times in the NT (Matthew 8:29, Mark 1:24, 5:7, Luke 4:34 8:28 and John 2:4)
In the Hebrew scriptures.
2 Kings 3:13 (NASB)
13 Now Elisha said to the king of Israel, “What do I have to do with
you? Go to the prophets of your father and to the prophets of your
mother.” And the king of Israel said to him, “No, for the Lord has
called these three kings together to give them into the hand of Moab.”
2 Samuel 16:10 (NASB)
10 But the king said, “What have I to do with you, O sons of
Zeruiah? If he curses, and if the Lord has told him, ‘Curse David,’
then who shall say, ‘Why have you done so?’”
2 Chronicles 35:21 (NASB)
21 But [a]Neco sent messengers to him, saying, “What have we to do
with each other, O King of Judah? I am not coming against you today
but against the house with which I am at war, and God has ordered me
to hurry. Stop for your own sake from interfering with God who is with
me, so that He will not destroy you.”
In the Christian scriptures.
Matthew 8:29 (NIV)
29 “What do you want with us, Son of God?” they shouted. “Have you
come here to torture us before the appointed time?”
Mark 1:24 N (NIV)
24 “What do you want with us, Jesus of Nazareth? Have you come to
destroy us? I know who you are—the Holy One of God!”
Luke 4:34 (KJV)
34 Saying, Let us alone; what have we to do with thee, thou Jesus of
Nazareth? art thou come to destroy us? I know thee who thou art; the
Holy One of God.
This ancient expression literally means "What have I to do with you?" You will notice that on each occasion this question is used, it indicates and objection to the proposed thing, so when Jesus said this to his mother, it was a mild reproof, not to interfere in his ministry, He replied, “My hour has not yet come.” (Vs John 2: 4b)
Jesus had just begun his ministry and his main objective was to do his father's will ( John 4:34) and no one was to interfere with its predetermined course. Jesus in his reply to his mother was in no way disrespectful or nasty to her, she did feel embarrassed. Rather than ignoring his mother, Jesus took into consideration his mother's concern as well as His Father's will and so performed his first miracle-turning water into good quality wine.