The Torah begins with an act of kindness and ends with an act of kindness. It begins with God clothing the naked: “The Lord God made for Adam and his wife garments of skin and clothed them,” and it ends with Him caring for the dead: “And He [God] buried [Moses] in the Valley.”
Sotah 14a