Reference of “in it”
The phrase فِيهَا “in it” refers to the قَرْيَة (town) or its plural قُرَى (towns).
فَأَخْرَجْنَا مَن كَانَ فِيهَا مِنَ الْمُؤْمِنِينَ
“Then we brought out whoever was in it from the believers”
The phrase فِيهَا “in it” refers to the قَرْيَة (town) or its plural قُرَى (towns).
Being among the الْمُؤْمِنِينَ (believers) is the condition for being brought out/saved, as stated: “Whoever was in it from the believers.”
The verse identifies the place (“in it”) as a town/towns and makes belief the explicit basis for being brought out.
“in it” — refers to the place (town/towns) mentioned contextually.
“town” / “towns” — the referent of “in it”.
“the believers” — those for whom extraction/saving is affirmed.
The verse specifies that those “brought out” are identified by Iman (belief): “Whoever was in it from the believers.”
فَأَخْرَجْنَا مَن كَانَ فِيهَا مِنَ الْمُؤْمِنِينَ
“Then we brought out whoever was in it from the believers”