It is narrated from Sayyiduna Ubayy (may Allah be pleased with him) that he said: "When the Messenger of Allah (peace and blessings be upon him) and his Companions came to Madinah and the Ansar gave them refuge, all the Arabs shot at them from a single bow (that is, they all united in enmity against them); they would spend the night with their weapons and wake up in the same state.
The Companions said among themselves: "Do you think we will live until we can spend the night in safety and peace, fearing no one but Allah, the Mighty and Majestic?" At this Allah, the Mighty and Majestic, revealed this verse: "Allah has promised those of you who believe and do righteous deeds that He will surely make them successors in the land, just as He made those before them successors, and that He will surely establish for them their religion which He has chosen for them, and that He will surely exchange their fear for security. They worship Me, associating nothing with Me. And whoever disbelieves after that" meaning whoever is ungrateful for this blessing, "then it is they who are the defiantly disobedient.""
Related hadith on this topic
Explanation & Benefits
Shaykh Adil Murshid et al.
(1) إسناده حسن. أبو العالية: هو رفيع بن مِهران.
Grading: Its chain is "hasan".
Note / Clarification: Abu al-Aliyah is Rufay' bin Mihran.
وأخرجه البيهقي في "دلائل النبوة" 3/ 6، و"الاعتقاد" ص 265 عن أبي عبد الله الحاكم، بهذا الإسناد.
Reference / Source: It was recorded by al-Bayhaqi in "Dala'il al-Nubuwwah" (3/ 6) and "al-I'tiqad" (p. 265) from Abu Abd Allah al-Hakim, with this chain.
وأخرجه الضياء في "المختارة" (3/ 1145) من طريق عبد الله بن محمد بن الحسن الشرقي، عن أحمد بن سعيد الدارمي، به.
Reference / Source: It was recorded by al-Diya' al-Maqdisi in "al-Mukhtarah" (3/ 1145) through Abd Allah bin Muhammad bin al-Hasan al-Sharqi, from Ahmad bin Sa'id al-Darimi, with this chain.
وأخرجه الضياء أيضًا (1146) من طريق محمد بن عبدة المروزي، عن علي بن الحسين بن واقد، به.
Reference / Source: It was also recorded by al-Diya' al-Maqdisi (1146) through Muhammad bin Abdah al-Marwazi, from Ali bin al-Husayn bin Waqid.
Source: Al-Mustadrak ala al-Sahihayn (Takhrij & Tahqiq: Shaykh Adil Murshid et al.), Page: 3554