Compassion and the Heart of Jewish Spirituality An ELI Talk by Rabbi Shai Held
(כב) כִּי֩ אִם־שָׁמֹ֨ר תִּשְׁמְר֜וּן אֶת־כָּל־הַמִּצְוָ֣ה הַזֹּ֗את אֲשֶׁ֧ר אָנֹכִ֛י מְצַוֶּ֥ה אֶתְכֶ֖ם לַעֲשֹׂתָ֑הּ לְאַהֲבָ֞ה אֶת־יְהוָ֧ה אֱלֹהֵיכֶ֛ם לָלֶ֥כֶת בְּכָל־דְּרָכָ֖יו וּלְדָבְקָה־בֽוֹ׃

(22) If you carefully keep all these commandments I am giving you--to love Adonai your God, walk in God's ways, and hold fast to God...

ספרי פרשת עקב

מה הקב"ה נקרא צדיק שנ' תהלים קמה צדיק יי בכל דרכיו וחסיד בכל מעשיו אף אתה הוי צדיק.הקב"ה נקרא חסיד שנאמ' וחסיד בכל מעשיו אף אתה הוי חסיד.

Midrash Sifrei, Eikev 49

As God is called merciful, so should you be merciful; as the Blessed Holy One is called gracious, so should you be gracious.

As God is called righteous, so you too should be righteous.

(ו) כָּךְ לָמְדוּ בְּפֵרוּשׁ מִצְוָה זוֹ. מַה הוּא נִקְרָא חַנּוּן אַף אַתָּה הֱיֵה חַנּוּן. מַה הוּא נִקְרָא רַחוּם אַף אַתָּה הֱיֵה רַחוּם. מַה הוּא נִקְרָא קָדוֹשׁ אַף אַתָּה הֱיֵה קָדוֹשׁ. וְעַל דֶּרֶךְ זוֹ קָרְאוּ הַנְּבִיאִים לָאֵל בְּכָל אוֹתָן הַכִּנּוּיִין אֶרֶךְ אַפַּיִם וְרַב חֶסֶד צַדִּיק וְיָשָׁר תָּמִים גִּבּוֹר וְחָזָק וְכַיּוֹצֵא בָּהֶן. לְהוֹדִיעַ שֶׁהֵן דְּרָכִים טוֹבִים וִישָׁרִים וְחַיָּב אָדָם לְהַנְהִיג עַצְמוֹ בָּהֶן וּלְהִדַּמּוֹת אֵלָיו כְּפִי כֹּחוֹ:

(6) They taught the following explanation of this commandment: "Just as God is called 'Gracious,' you too must be gracious. Just as God is called 'Compassionate,' you too must be compassionate. Just as God is called 'Holy,' you too must be holy." In this way did the Prophets call God by many appellations: "Slow to anger," "Abundant in kindness," "Just and Fair," "Pure," "Mighty," and "Powerful," and similar to these - in order to demonstrate that these are good and proper ways and that a person is obligated to accustom himself/herself to act according to them, to imitate God, according to his/her ability.

מה הוא מלביש ערומים דכתיב (בראשית ג, כא) ויעש ה' אלהים לאדם ולאשתו כתנות עור וילבישם אף אתה הלבש ערומים הקב"ה ביקר חולים דכתיב (בראשית יח, א) וירא אליו ה' באלוני ממרא אף אתה בקר חולים הקב"ה ניחם אבלים דכתיב (בראשית כה, יא) ויהי אחרי מות אברהם ויברך אלהים את יצחק בנו אף אתה נחם אבלים הקב"ה קבר מתים דכתיב (דברים לד, ו) ויקבר אותו בגיא אף אתה קבור מתים

As God clothes the naked, as it is written, 'And the Adonai G-d made for Adam and his wife cloaks of leather, and he clothed them (Genesis 3:21);' so you, too clothe the naked. The Blessed Holy One visited the sick, as it is written, 'And God appeared in Ailonei Mamrei [while Abraam was in pain] (Genesis 18:1);' so you, too, visit the sick. The Blessed Holy One comforted mourners, as it is written, 'And it was, after the death of Abraham, and G-d blessed his son Isaac (Genesis 25:11);' so you,too, comfort mourners. The Blessed Holy One buried the dead, as it is written, 'And [God] buried [Moses] in the valley (Deuteronomy 34:6);' so you, too, bury the dead."