The book of Ecclesiastes, or Kohelet, grapples with this very question, stating, "I said in my heart: The righteous and the wicked, God will judge, as there is a time for every purpose and for every action there" (Ecclesiastes 3:17).

But what does that really mean?

The ancient rabbis certainly weren't afraid to wrestle with difficult ideas. In Kohelet Rabbah, a rabbinic commentary on Ecclesiastes, we find some truly challenging interpretations of this verse. Rabbi Ḥanina bar Pappa goes so far as to say that God judges the righteous like the wicked. Think about that for a moment. He uses the shocking image of a robber being led to the gallows alongside none other than Rabbi Akiva, one of the greatest sages in Jewish history. What a stark and unsettling comparison!

But it gets even more complex. Rabbi Yehuda HaNasi, compiler of the Mishnah, offers another perspective: God judges the righteous through the wicked. He illustrates this with a chilling story. The wicked Turnusrofus (often understood as a Roman governor) judged Rabbi Akiva, condemning him to a brutal death.

And then, there’s the tale of Luleyanus and his brother Pappos. Trajan, the Roman emperor, captured them in Laodicea. Taunting them, he says, essentially: "Aren't you like Ḥananya, Mishael, and Azarya – Hananiah, Mishael, and Azariah – who were miraculously saved from Nebuchadnezzar’s fiery furnace? I'm like Nebuchadnezzar! Where's your God now?"

Their response is incredibly powerful. They explain that Ḥananya, Mishael, and Azarya were righteous, and even Nebuchadnezzar possessed a certain level of decency, making him worthy of a miracle. But Luleyanus and Pappos? They admit they are liable to punishment for their sins. And Trajan, a wicked king, is unworthy of performing miracles. "If you kill us," they say, "fine. But if not, God has many ways to bring about death. And know this: The Holy One, blessed be He, is destined to avenge our blood."

According to the story, they barely finished speaking before messengers arrived from Rome and killed Turnusrofus by smashing his brain with wooden clubs. Talk about swift justice!

The commentary concludes with a reflection on the verse itself: “As there is a time for every purpose and for every action there” – for every purpose there is a time, and for every time there is a purpose. "And for every action there" – meaning that in this world, we have freedom of action, we can do what we wish. However, we are held to account for our actions in the World to Come.

So, what can we take away from all this? Is it fair? Is it just? These stories don't offer easy answers. Perhaps the point isn't to understand the how of God's judgment, but to acknowledge its inevitability. Maybe it’s a reminder that even in the face of injustice, there's a divine reckoning. And that even the righteous can suffer, and that suffering, somehow, plays a part in the larger cosmic order. It's a sobering, complex, and ultimately, deeply human perspective on the mysteries of faith and justice.