On Shavuos, it is customary to read the Book of Ruth. The subtext of the story is how crucial it is to pursue a personal stake in Torah and to want to be a part of the Jewish people. The story concludes with the genealogy of Ruth’s descendants, culminating in David – and therefore Moshiach too, the ultimate dream of Jewish hope.

But the story is not a happy one. Boaz died the morning after he took her in, leaving her a pregnant widow. She never saw the happy ending; neither did Boaz or Naomi see the vindication of their actions. David’s rise was generations after they had passed.

The story is explicit that God’s justice is not simple or immediate, but calculated over centuries and generations.

The Chasam Sofer notes that the story of Cain and Abel is included in the Torah, right at the beginning, to teach precisely this lesson. God favoured Abel, and Cain murdered him out of jealousy. Yet Cain lived for a full life with countless descendants. Where is the justice? It is not just to say that justice was when they died in the Flood, so long afterward.

The story shows that justice is complicated. It is curious to note that the end of the book, the genealogy of Jewish hope springs from some bizarre circumstances.

Boaz, a member of the house of Yehuda was descended from Peretz, born of the mysterious story of Yehuda and Tamar. The Gemara says that he lost his free will when he approached the crossroads and spotted her.

Boaz fainted at the sight of Ruth in his bed chambers. Everyone castigated him, supporting Ploni Almoni’s arguments. The day after adjudicating Ruth’s case, he died, which could certainly be labeled as divine retribution by his critics.

Ruth was descended from Moav, born of incest between Lot and his daughters. The other child born of this was Amon, whose descendant married King Shlomo.

The story of David and Batsheva is one of the great mysteries in our tradition. She was married, and David orchestrated her husband’s death. The Gemara declares that whoever says David sinned is mistaken; but whoever says he didn’t is as well!

Moshiach rises through bizarre circumstances. Incest, prostitution, adultery, and promiscuity.

The world needs a Moshiach. Judaism believes in a World to Come, but it alone is not enough. Otherwise, we could each just take care of ourselves as hermits, and leave the world to be damned, and passively watch it burn and unravel. Judaism staunchly disavows this. Judaism affirms that this world is ours, and it needs repair. We must do what we can to make it a better place – and Moshiach will finish the job. He emerges out of the ashes of a world which has started to rebuild.

Receiving the Torah is the moment we were chosen to be charged with this responsibility.

Perhaps we read Ruth to remind ourselves that we may fade long before we see success. But success is not why we started. We persevere and endure, fortified with the knowledge that’s what right isn’t always what’s easy.

A society grows great when old men plant trees whose shade they know they shall never sit in.