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.

The Torah states in numerous places that upstanding societies are predicated on justice:

בְּצֶדֶק תִּשְׁפֹּט עֲמִיתֶךָ – You shall judge your fellow with righteousness (19:15)

Rashi notes that this is not just the approach for formal legal systems and executors of justice; this is how people ought to conduct themselves on an individual level too. The Gemara in Shabbos states that הדן חבירו לכף זכות, דנין אותו לזכות – one who judges their fellow favorably is judged favorably in return.

The Ba’al Shem Tov teaches that when a person gets to Heaven, he is ushered into a courtroom, and is instructed to judge a case. The case is presented, the prosecution speaks, then the defense. The eager new-comer pounds the gavel and declares the defendant guilty. The angels pull him aside, and say, “Reb Yid, this case was actually about you. You are the defendant. Don’t you remember that time you…” He must then answer for all the times he was guilty.

R’ Yisroel Reisman points out that this is why we call this process דין וחשבן – a ruling and accounting. The ruling comes first.

R’ Reisman asks a poignant question – this mechanism will not work on people who already know this. When it is eventually and inescapably their turn to judge, will the people who know better declare everyone and everything innocent, and when informed that they are the defendants, will they feign surprise and be absolved?

The Beis HaLevi explains that the judgment in Heaven is not a new, independent decision.

The judgments we make in our lives will one day be applied to ourselves, and we will be held to the standards we expected of others. All a person truly is, is the decision they have made. Are we real? Do we match up to what we think we perceive to be in the mirror? When you judge another, you do not define them; you define yourself. If you are kind, you will be treated kindly. You project the values and beliefs you have, and one day, which will one day be shined on you.

בְּצֶדֶק תִּשְׁפֹּט עֲמִיתֶךָ is not exclusively about a court system. It is a way of life; a mentality. It is the way to create a community of fair, decent, and good people. Don’t treat people well based on their respective merit, or otherwise. Treat people well purely because you are someone who treats all people well.