Another matter, “it was when Pharaoh let [the people] go” – who said woe? Moses said woe. It is analogous to one who became the groomsman for the king’s daughter. He saw in the stars that he would take her out of her father’s house but would not come with her to the groom’s house, to her wedding canopy. He began crying. They said to him: ‘Why are you crying?’ He said to them: ‘I am crying because I exerted myself to take her out, but I am not coming with her to her wedding canopy.’ So, Moses said: ‘I am crying because I exerted myself to take Israel out of Egypt, but I will not enter the Land with them’ – that is why: “It was [vayhi] when Pharaoh let [the people] go.”
Moses Led Israel Out but Never Reached the Land
Shemot Rabbah 20:8