It is narrated from Sayyiduna Abu Mas'ud (may Allah be pleased with him): "The Messenger of Allah (peace and blessings be upon him) delivered a sermon to us in which he praised and glorified Allah, then said: 'There are some hypocrites among you, so whomever I name, let him stand up.' Then he (peace and blessings be upon him) began calling out by name: 'Stand up, O so-and-so; stand up, O so-and-so; stand up, O so-and-so,' until he (peace and blessings be upon him) had named thirty-six men. Then he said: 'There are (others) among you (or he said: some of you remain), so fear Allah.' The narrator states that Sayyiduna Umar (may Allah be pleased with him) passed by a man who had been named and who had covered his face; he (may Allah be pleased with him) knew him. He asked him: 'What is the matter with you?' So he told him of what the Messenger of Allah (peace and blessings be upon him) had said, whereupon Sayyiduna Umar (may Allah be pleased with him) said: 'May destruction and distance be upon you for the rest of the day.'"
Imam Abd bin Humayd and Ahmad bin Hanbal recorded this hadith; the wording is Imam Ahmad's, and its narrators are thiqat (trustworthy).