When you are stuck somewhere you need to leave
The Qur'an quotes the oppressed asking to be taken out, and to be sent someone.
وَمَا لَكُمْ لَا تُقَـٰتِلُونَ فِى سَبِيلِ ٱللَّهِ وَٱلْمُسْتَضْعَفِينَ مِنَ ٱلرِّجَالِ وَٱلنِّسَآءِ وَٱلْوِلْدَٰنِ ٱلَّذِينَ يَقُولُونَ رَبَّنَآ أَخْرِجْنَا مِنْ هَـٰذِهِ ٱلْقَرْيَةِ ٱلظَّالِمِ أَهْلُهَا وَٱجْعَل لَّنَا مِن لَّدُنكَ وَلِيًّا وَٱجْعَل لَّنَا مِن لَّدُنكَ نَصِيرًا
…rabbanā akhrijnā min hādhihi-l-qaryati-ẓ-ẓālimi ahluhā, wa-jʿal lanā min ladunka waliyyan wa-jʿal lanā min ladunka naṣīrā.
“And what is [the matter] with you that you fight not in the cause of Allāh and [for] the oppressed among men, women, and children who say, "Our Lord, take us out of this city of oppressive people and appoint for us from Yourself a protector and appoint for us from Yourself a helper"?”
Source
The Qur'an · 4:75
- Qur'anic text in the Uthmani script via Quran.com; translation: Saheeh International