The Ksav Sofer at the Hesped of his sister told the following story:
Beruriya (wife of the Tanna R’ Meir) had two children whom their father R’ Meir loved very much. One day when R’ Meir was in the Bais Medrash both the children passed away and Beruriya placed them on their beds and covered them with a sheet. When R’ Meir came home from his studies he asked his wife where his children were. Afraid that the news of the passing of his two beloved children would cause too great a harm to her husband, Beruriya told him that they were probably out the house.
While feeding her husband supper she asked, ‘Rebbe, I have a question.’ R’ Meir indicated that she proceed. She went ahead and asked, ‘If someone gave me a deposit to keep safe, when the time is done do I have to give it back to the rightful owner’? Answered R’ Meir, ‘of course you do!’.
Beruriya then got up, took her husband’s hand, brought him to the room and showed him his two sons. R’ Meir fell on the floor and started crying excessively. Beruriya then said to R’ Meir, ‘My husband, did I not just ask you what to do with a deposit and you answered me that I must give it back to the owner? So too Hashem gave us our children, but when he wants them back we have to give them’. With the words of his Aishess Chayil (woman of valour) , R’ Meir was comforted.
The Ksav Sofer explains that R’ Meir was afraid that his children died early because of his sins and if not for him his children would still be alive. Beruriya needed to comfort R’ Meir and let him know that it wasn’t because of his sins rather simply that their time in this world was done and they accomplished whatever it was they needed to accomplish.
The Ksav Sofer finishes off saying that one must realize that when anything bad happens to an individual it is really still within the Chasdei Hashem (G-d’s kindness). According to our sins we may well deserve much worse, but G-d with his compassion lightens the burden and only gives us a small amount of punishment based on what we can handle.
The Midrash in this weeks Parsha writes that if not for the 22 years of Yosef being in exile, (which caused everyone to have a massive Tikun [rectification] because, as a result, Yosef passed the greatest of tests, and all the brothers did Teshuva.) Yaakov would have been brought down to Egypt in chains and the exile would have started then. But, since Yosef was in Egypt and became King, it led to Yaakov being brought down through his own choice, and the exile of Egypt was able to be delayed.
After Yaakov came to Egypt he clearly saw that the pain and suffering that he had had for 22 years was truthfully the Chasdei Hashem, and that everything had worked out for the best. Ultimately, Hashem knows what’s best for us, it’s up to us to believe in Him.