Surah At-Tawba

9:16

أَمْ حَسِبْتُمْ أَن تُتْرَكُوا۟ وَلَمَّا يَعْلَمِ ٱللَّهُ ٱلَّذِينَ جَٰهَدُوا۟ مِنكُمْ وَلَمْ يَتَّخِذُوا۟ مِن دُونِ ٱللَّهِ وَلَا رَسُولِهِۦ وَلَا ٱلْمُؤْمِنِينَ وَلِيجَةًۭ ۚ وَٱللَّهُ خَبِيرٌۢ بِمَا تَعْمَلُونَ

Do you think that you will be left [as you are] while Allah has not yet made evident those among you who strive [for His cause] and do not take other than Allah, His Messenger and the believers as intimates? And Allah is Acquainted with what you do.

Tafsir 9:16

Do the believers think that Allah would leave them without testing them? Testing is one of Allah’s customs, and they will be tested until Allah clearly proves those who strive with sincerity for Him, who do not take protectors apart from Allah, His Messenger and the believers, and do not make intimate friends with the disbelievers. Allah is aware of everything you do – nothing is hidden from Him – and you will be repaid for your actions.