It is narrated from Sayyiduna Abdullah bin Mas'ud (may Allah be pleased with him) that one night we were with the Messenger of Allah (peace and blessings be upon him) and we talked a great deal. Then we returned to our homes, and in the morning, when we woke, we came to the Messenger of Allah (peace and blessings be upon him), and he (peace and blessings be upon him) said: "All the prophets were presented to me together with their nations, and their followers as well." Then he mentioned the long hadith.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الصلاة / 2132