According to Muslims, The Koran was spoken to the angel Gabriel, who gave it to Muhammad to write down. While I wouldn’t expect Allah to say the Trinity exists, I would certainly think he would be familiar with the doctrine. But, according to the Koran, apparently Allah believed the Trinity was the Father, the Son, and Mary.
Surah 5.116 says, “And behold! Allah will say: “O Jesus the son of Mary! Didst thou say unto men, worship me and my mother as gods in derogation of Allah’?” He will say: “Glory to Thee! never could I say what I had no right (to say)…”
I realize the Trinity can be difficult to understand, but how could the almighty creator of the universe be confused by it?
Muhammad was illiterate; even if he was not, he didn’t have a Bible in his native language. Maybe if he had a Bible in Arabic, and someone to read it to him, he could have been a little more accurate about what Christians believe when he composed the Koran out of whole cloth.