Answering a different question, I noticed this passage:
Then some of the scribes and Pharisees answered him, saying, “Teacher, we wish to see a sign from you.” But he answered them, “An evil and adulterous generation seeks for a sign, but no sign will be given to it except the sign of the prophet Jonah. For just as Jonah was three days and three nights in the belly of the great fish, so will the Son of Man be three days and three nights in the heart of the earth. The men of Nineveh will rise up at the judgment with this generation and condemn it, for they repented at the preaching of Jonah, and behold, something greater than Jonah is here. The queen of the South will rise up at the judgment with this generation and condemn it, for she came from the ends of the earth to hear the wisdom of Solomon, and behold, something greater than Solomon is here.—Matthew 12:38-42 (ESV)
Now the reference in Israel's history would be:
Now when the queen of Sheba heard of the fame of Solomon concerning the name of the LORD, she came to test him with hard questions. She came to Jerusalem with a very great retinue, with camels bearing spices and very much gold and precious stones. And when she came to Solomon, she told him all that was on her mind. And Solomon answered all her questions; there was nothing hidden from the king that he could not explain to her. And when the queen of Sheba had seen all the wisdom of Solomon, the house that he had built, the food of his table, the seating of his officials, and the attendance of his servants, their clothing, his cupbearers, and his burnt offerings that he offered at the house of the LORD, there was no more breath in her.—1st Kings 10:1-5 (ESV)
See the rest of the story at 1st Kings 10:1-13 and 1st Chronicles 9:1-12.
But what is the future reference? Who or what "will rise up at the judgment with this generation and condemn it"?