Al-A'raaf • BN-TAFSEER-IBN-E-KASEER
﴿ وَبَيْنَهُمَا حِجَابٌۭ ۚ وَعَلَى ٱلْأَعْرَافِ رِجَالٌۭ يَعْرِفُونَ كُلًّۢا بِسِيمَىٰهُمْ ۚ وَنَادَوْا۟ أَصْحَٰبَ ٱلْجَنَّةِ أَن سَلَٰمٌ عَلَيْكُمْ ۚ لَمْ يَدْخُلُوهَا وَهُمْ يَطْمَعُونَ ﴾
“And between the two there will be a barrier. And there will be persons who [in life] were endowed with the faculty of discernment [between right and wrong], recognizing each by its mark. And they will call out unto the inmates of paradise, "Peace be upon you!"-not having entered it themselves, but longing [for it].”
Please check ayah 7:47 for complete tafsir.