Al-An'aam • BN-TAFSEER-IBN-E-KASEER
﴿ وَكَذَٰلِكَ فَتَنَّا بَعْضَهُم بِبَعْضٍۢ لِّيَقُولُوٓا۟ أَهَٰٓؤُلَآءِ مَنَّ ٱللَّهُ عَلَيْهِم مِّنۢ بَيْنِنَآ ۗ أَلَيْسَ ٱللَّهُ بِأَعْلَمَ بِٱلشَّٰكِرِينَ ﴾
“For it is in this way that We try men through one another - to the end that they might ask, "Has God, then, bestowed His favour upon those others in preference to us?" Does not God know best as to who is grateful [to Him]?”
Please check ayah 6:54 for complete tafsir.