Talk to the librarian about local resources and how you’ve just lost your housing over religious differences. They should be able to point you to local organizations who can help you.
Are there any ex Muslim or ex religious groups around you? They might also be able to help as I’m sure it’s not uncommon for people who denounce the religious beliefs they grew up with to get kicked out of their homes. As a queer person I know there’s a lot of queer organizations that help with this stuff because it’s common in the queer community to not have family support.
Even if there are, if this persons parents are kicking them to the curb the law forcing them back in isn’t going to be helpful - then their family will treat them even worse.
Best to gain independence and find support from like minded people than be subject to abusive conditions.