Rabbi Berekhya said: Performing acts of kindness is in the Torah at its beginning, in its middle, and at its end. It is at its beginning, as it is written: “The Lord God built the rib [that he took from the man, into a woman, and He brought her to the man]” (Genesis 2:22). [This verse] teaches that the Holy One Blessed be He braided Eve’s hair, and brought her to Adam, and he became the groomsman for them; as in the coastal towns, they call braiding, building.
It is in its middle, as it is written: “The Lord appeared to him in the plains of Mamre” (Genesis 18:1), teaching that He visited him.28God visited Abraham, who was recovering from his circumcision. “God blessed Isaac his son” (Genesis 25:11), this is the blessing of the mourners.29He came to console Isaac upon the death of Abraham. At its end, as it is stated: “He buried him in the valley” (Deuteronomy 34:6).30God buried Moses.
Rabbi Ḥanin said: What is the measure of recompense [for acts of kindness]? Jacob died in the land of Egypt. For whom was it fitting to tend to him? Is it not the Holy One blessed be He, who said to him: “I will descend with you to Egypt [and I will also take you up]” (Genesis 46:4)?
Joseph came and snatched the mitzva for himself, as it is written: “Joseph ascended to bury his father” (Genesis 50:7). Joseph died in Egypt. For whom was it fitting to tend to him? Is it not the tribes, to whom he administered an oath, as it is stated: “Joseph administered an oath [to the sons of Israel, saying: God will surely remember you, and you shall carry up my bones from here]” (Genesis 50:25).
Moses came and snatched the mitzva for himself, as it is stated: “Moses took Joseph’s bones” (Exodus 13:19). Moses died, and the Holy One blessed be He, in His glory, repaid him, as it is stated: “He buried him in the valley” (Deuteronomy 34:6).