The Prophet ﷺ said, "Allah will say, 'Adam!' He will reply, 'Here I am at Your service, ready to please You.' Then a voice will call out, 'Allah commands you to send forth from your descendants a contingent for the Fire.'"
قال النبي ﷺ: يقول الله: يا آدم، فيقول: لبيك وسعديك، فينادى بصوت: إن الله يأمرك أن تخرج من ذريتك بعثا إلى النار.
Bukhari narrated it in the Book of Riqaq (6530), and Muslim in the Book of Iman (222), both from the hadith of Jareer, from Amash, from Abu Salih, from Abu Saeed, and he mentioned the hadith. The wording here is Bukhari's. This is an abridged hadith, and it will come in full in the chapter on the nation of Muhammad being half the people of Paradise, and what has been reported about Gog and Magog.