I believe your mistaken here
I had to ask for help because I do not know the quran
but it says
On The Day Of Resurrection
[5:116] GOD will say, "O Jesus, son of Mary, did you say to the people, `Make me and my mother idols beside GOD?’ " He will say, "Be You glorified. I could not utter what was not right. Had I said it, You already would have known it. You know my thoughts, and I do not know Your thoughts. You know all the secrets.
Muslims do in fact believe that Jesus was a prophet but I always turn to the bible to show them where it makes it clear that Jesus is in fact God - I am quickly called a liar but I confirm with them that they believe in the good book.
It seems to me above that the verse is following Muslim logic that Jesus the son of Mary is looked at through the early christian church as an idol that replaces God and likewise for Mary but as Catholics we know these things are not true…