That was Jehoiachin's fate. He was taken into exile by Nebuchadnezzar, along with members of the Sanhedrin, the Jewish high court. Now, the Sanhedrin were seriously worried. With Jehoiachin locked away, they feared the entire House of David – the royal line promised an eternal dynasty – might just… end.

So, they hatched a plan. According to Legends of the Jews, they pleaded with Nebuchadnezzar to allow Jehoiachin to be with his wife. Think about the audacity! They were prisoners, begging their captor for a favor that would ensure their legacy.

How did they pull it off? Well, they managed to get the queen’s hairdresser on their side! The hairdresser, in turn, won over Queen Semiramis herself, Nebuchadnezzar’s wife. And Semiramis, bless her heart, convinced the king to show Jehoiachin some mercy. It’s a wild chain of events, isn't it? A royal hairdresser playing a key role in Jewish destiny!

But here's where the story takes a truly inspiring turn. Jehoiachin's suffering had transformed him. He wasn't the same king who had been led into exile. Even reunited with his wife, he remained deeply devoted to Jewish law, the halakha. He was determined not to violate God's commandments, even for the sake of personal pleasure. He was prepared to abstain from marital relations if it meant transgressing God's word. This devotion is pretty remarkable, right?

This steadfastness, this unwavering commitment, moved God Himself. As the story goes, the heavenly Sanhedrin – yes, there's one in heaven too! – absolved God from His oath to crush Jehoiachin’s line and strip it of sovereignty. In other words, God revoked the decree against Jehoiachin because of his repentance and piety.

And the reward for his faithfulness? A truly distinguished posterity. Jehoiachin wasn't just spared; he was blessed. Zerubbabel, the first governor of Palestine after the destruction of the Temple, was his grandson. But even more significantly, the Legends of the Jews tells us that the Messiah himself will be a descendant of Jehoiachin.

Think about that for a moment. A king imprisoned, facing the potential end of his entire lineage, shows such devotion that he alters the course of history and ensures the coming of the Messiah. It’s a powerful reminder that even in the darkest of times, our choices matter, and that faithfulness can have unimaginable consequences.