In the Bible, we see a man who had died recognizing another man whom he had
known in life and even recognizing a man whom he had not known in life.1
The answer to your question is, " In the next life, both those who are in
heaven, and those who are not, will know each other."
1 (Luke 16:23)