[Machine] When the Messenger of Allah ﷺ and his companions arrived in Madinah, the Ansar welcomed them, and the Arabs were amazed at their unity. They would not spend a night or wake up except with their weapons, saying, "Do you think that we can live peacefully and securely, without fearing anyone except Allah?" So Allah revealed the following verses: "Allah has promised those who have believed among you and done righteous deeds that He will surely grant them succession [to authority] upon the earth just as He granted it to those before them and that He will surely establish for them [therein] their religion which He has preferred for them and that He will surely substitute for them, after their fear, security..." (Quran 24:55) until "...but whoever disbelieves after that, then those are the defiantly disobedient." (Quran 24:55), meaning those who deny His blessings, "So those are the defiantly disobedient." (Quran 3:82).
لَمَّا قَدِمَ رَسُولُ اللَّهِ ﷺ وَأَصْحَابُهُ الْمَدِينَةَ وَآوَتْهُمُ الْأَنْصَارُ رَمَتْهُمُ الْعَرَبُ عَنْ قَوْسٍ وَاحِدَةٍ كَانُوا لَا يَبِيتُونَ إِلَّا بِالسِّلَاحِ وَلَا يُصْبِحُونَ إِلَّا فِيهِ فَقَالُوا تَرَوْنَ أَنَّا نَعِيشُ حَتَّى نَبِيتَ آمِنَيْنِ مُطْمَئِنَّيْنِ لَا نَخَافُ إِلَّا اللَّهَ؟ فَنَزَلَتْ {وَعَدَ اللَّهُ الَّذِينَ آمَنُوا مِنْكُمْ وَعَمِلُوا الصَّالِحَاتِ لَيَسْتَخْلِفَنَّهُمْ فِي الْأَرْضِ كَمَا اسْتَخْلَفَ الَّذِينَ مِنْ قَبْلِهِمْ وَلَيُمَكِنَّنَ لَهُمْ دِينَهُمُ الَّذِي ارْتَضَى لَهُمْ وَلَيُبَدِّلَنَّهُمْ مِنْ بَعْدِ خَوْفِهِمْ أَمْنًا} [النور 55] إِلَى {وَمَنْ كَفَرَ بَعْدَ ذَلِكَ} [النور 55] يَعْنِي بِالنِّعْمَةِ {فَأُولَئِكَ هُمُ الْفَاسِقُونَ} [آل عمران 82]