Abu al-Tufayl narrates from Hudhayfah bin Asid (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "Last night my Ummah was presented to me beside this very chamber, so that I know each man among them better than any of you knows his companion." A man among the people said: O Messenger of Allah, those presented to you were the ones who have already been created; what about those who have not yet been created? He (peace and blessings be upon him) said: "They too were given form for me. By the One in whose hand is my soul, I know each person among them better than a man knows his companion."
Hadith Referenceالمعجم الكبير للطبراني / باب الحاء / 3041