Al-Ankaboot • EN-TAFSIR-MAARIF-UL-QURAN
﴿ وَلَيَعْلَمَنَّ ٱللَّهُ ٱلَّذِينَ ءَامَنُوا۟ وَلَيَعْلَمَنَّ ٱلْمُنَٰفِقِينَ ﴾
“[Yea-] and most certainly will God mark out those who have [truly] attained to faith, and most certainly will He mark out the hypocrites.”
(1)-It means that such people join the infidels when they apprehend some kind of torture from them, but when Allah's help will come to the Muslims in a battle against the infidels, they will pretend to be Muslims on the plea that they had joined the infidels only because they feared to be persecuted by them. (2)-The sense is that they did not believe in Islam with their hearts, and this fact cannot: be concealed from Him, because He knows whatever lies in the hearts of the people.