All perfect praise be to Allaah, The Lord of the Worlds. I testify that there is none worthy of worship except Allaah, and that Muhammad, sallallaahu ‘alayhi wa sallam, is His Slave and Messenger.
Examples are given to bring the meaning closer to people's minds. They do not necessarily indicate similarity in all aspects. If someone gives an example from the real life of the creatures to bring a matter related to the Creator closer to minds, then this does not mean that it indicates drawing a similarity between the Creator and the creatures. The Quran includes some such examples:
Ibn Abi Shaybah reported that Mujaahid said regarding the saying of Allaah The Almighty (which means): {Allaah presents an example: a slave [who is] owned and unable to do a thing and he to whom We have provided from Us good provision, so he spends from it secretly and publicly. Can they be equal? Praise to Allaah! But most of them do not know. And Allaah presents an example of two men, one of them dumb and unable to do a thing, while he is a burden to his guardian. Wherever he directs him, he brings no good. Is he equal to one who commands justice, while he is on a straight path?} [Quran 16: 75-76], "All this is an example given of the idol and the True God."
Qataadah also said regarding the saying of Allaah The Almighty (which means): “One of them dumb”, “It means the idol.” As for the saying of Allaah The Almighty (which means): “Is he equal to one who commands justice”, he said: “It means Allaah.” ['Abdur-Razzaaq]
Thus, the matter is not problematic at all. Hence, you are still Muslim and your wife is still in marriage with you. Do not worry and forget about those evil thoughts, and think about what can be beneficial for you in your religion and worldly life.
For more benefit, please refer to Fatwa 5398.
Allaah Knows best.