Parshas Mattos

It is written in this week’s Haftorah, “What wrongdoings did your forefathers see in Me that they distanced themselves from Me..”
Zera Shimshon asks why did Hashem mention that the reason that the Jewish Nation “distanced themselves” from Hashem (i.e. stopped keeping His mitzvos) was because they thought that Hashem did some wrongdoing? Why didn’t He just rebuke them  that they distanced themselves from Him?
He explains in light of a very interesting ruling of the Shulchan Aruch (Yoreh Daya 236/6).  The Shulchan Aruch rules that two people who make an agreement between each other, and one of them breaks the agreement then the other one is automatically exempt from his commitment.
For instance, a man and a lady swore that they would marry each other by a certain date. When that date arrived one of the parties willfully ignored the agreement and simply didn’t show up. Since one of the parties didn’t “keep their part of the bargain” then the other party is exempt from the agreement and is allowed to get married to someone else. However, the one who didn’t keep the agreement is still bound by the oath and cannot marry someone else.
This is only until the other person didn’t get married to someone else. After the second party married someone else, since now they didn’t “keep their part of the bargain”,  then the one who broke the agreement is also annulled from the oath.
There is a covenant between the Jewish Nation and Hashem. The Jewish Nation swore to keep all of Hashem’s mitzvos and not to worship avodah zarah. Correspondingly, Hashem swore to the Jewish Nation that He would never abandon them and that He won’t exchange them for another nation.
According to this Zera Shimshon explains the above possuk from the Haftorah.
When Hashem saw the Jewish Nation leave the Torah way and worship Avodah Zara He asked them “What wrongdoings did you see in Me”. Meaning, if I would have abandoned you and not kept My part of the covenant, then I would understand why you worshipped avodah zarah (in accordance to the above ruling of the Shulchan Aruch). If this was the case Hashem would not have rebuked them.
However Hashem said that He blessed our forefathers. And even after we didn’t fulfill our part of the covenant and we worshipped avodah zarah and you didn’t keep Hashem’s commandments in Mitzrayim, He continued to keep His promise and He gave us great riches when He took us out of Mitzrayim.
Only after Hashem mentioned that He never broke the covenant with us was He able to rebuke the Jewish Nation for their breach of the covenant and distancing themselves from Him!