It makes no sense for a teacher to attempt that kind of philosophical debate with a 4/5 year old. I think the head teacher needs to be made aware at least so they know this teacher is unwittingly upsetting children by bringing her personal beliefs into the classroom, because that's not her role. Being Moslem (using your spelling I think, OP, apologies if that's incorrect) is important to your family and she's part of it. I have to say, I was surprised that it wasn't a misunderstanding, having worked with kids and also having a kid who some think is advanced (he has pretty asynchronous development so he talks the talk but really struggled at that age with lessons about the world wars for example, other children were fine with them - he is autistic, he couldn't understand why soldiers would be considered heroes because they killed people). However, we also had a TA who didn't believe in autism, and she made his life a misery. We took him out in the end. These individuals really do have a negative impact.
People can't comment on something that happened at school until you seek clarification on whether it happened, so it's a difficult one to address until that's confirmed. I think that's probably where most of the infuriated responses have come from.
The concept of whether children can consent to being part of a religion is separate to this issue. Currently your child is being raised in a Moslem household, and expecting her to somehow have an opinion on the ethics of that or a concept of how to opt out of it is deeply unfair, and ridiculous honestly. The teacher needs to be given a talking to by the head, because she's causing unnecessary upset. I've worked with Muslim families and their disabled children and they absolutely have a say in their child's religious beliefs, it's a part of respecting the child and caring for them when the parents aren't there. It's what they know, it's what their parents believe. The notion that the teacher thinks they know better is a big problem for me, and I'm pretty bloody atheist. If it were the other way around - a teacher telling an atheist kid they were part of a religion - there would be a serious outcry.