For completeness, I should note that some accounts portray Muhammad as someone who imposed severe punishments on unmarried mothers and arranged for a baby to be given up for adoption; those descriptions are often debated and discussed in different ways.
Which example do you prefer, that depiction or Jesus?
I can understand feeling frustrated if a mother has ██████████████████████ and has behaved in ways that caused harm to others, for example by making damaging accusations that affected someone's job. Those actions can create anger and a desire for strong responses. At the same time, I believe people can grow, heal, and learn from their mistakes; much of our development comes from working through difficult experiences.
There aren't many TV shows about two broke, single moms in the Muslim world.
Many people in ██████████████████████████████████████████████████████████████████████████ in their daily lives.
Again, I would refrain from punitive measures; they made a mistake and their life is valuable. The children will benefit from her presence.