Allah struck the following parable in surah al-Nahl:
وَضَرَبَ اللَّهُ مَثَلًا قَرْيَةً كَانَتْ آمِنَةً مُّطْمَئِنَّةً يَأْتِيهَا رِزْقُهَا رَغَدًا مِّن كُلِّ مَكَانٍ فَكَفَرَتْ بِأَنْعُمِ اللَّهِ فَأَذَاقَهَا اللَّهُ لِبَاسَ الْجُوعِ وَالْخَوْفِ بِمَا كَانُوا يَصْنَعُونَ
And Allah presents a parable: a city which was safe and secure, its provision coming to it in abundance from every location, but it denied the favors of Allah. So Allah made it taste the envelopment of hunger and fear for what they had been doing. [16:112]
In his explanation of this ayah, Imam Muhammad ibn Jarir al-Tabari wrote:
يقول الله تعالى ذكره : ومثل الله مثلا لمكة التي سكنها أهل الشرك بالله هي القرية التي كانت آمنة مطمئنة ، وكان أمنها أن العرب كانت تتعادى ، ويقتل بعضها بعضا ، ويسبي بعضها بعضا ، وأهل مكة لا يغار عليهم ، ولا يحاربون في بلدهم ، فذلك كان أمنها . وقوله ( مطمئنة ) يعني قارة بأهلها ، لا يحتاج أهلها إلى النجع ، كما كان سكان البوادي يحتاجون إليها ( يأتيها رزقها رغدا ) يقول : يأتي أهلها معايشهم واسعة كثيرة . وقوله ( من كل مكان ) يعني : من كل فج من فجاج هذه القرية ، ومن كل ناحية فيها . ـ
Allah is saying: Allah has presented a parable of Mecca where the people who associate partners with Allah lived. Mecca was a city that was safe and secure. Its safety lay in the fact that the Arabs used to antagonize, fight, and insult one another, but they did not attack the people of Mecca or fight them in their homeland. As a result, the people of Mecca were safe. And the meaning of “secure” here is that its people were stable and not in search of a homeland, unlike the bedouins who were in need of a place to call home.