The midrash expands the Cain and Abel narrative, including the dispute that led to murder and Cain's repentance and punishment.
וַיֹּאמֶר קַיִן אֶל הֶבֶל אָחִיו וַיְהִי בִּהְיוֹתָם וגו' (בראשית ד, ח), עַל מָה הָיוּ מִדַּיְּנִים, אָמְרוּ בּוֹאוּ וְנַחֲלֹק אֶת הָעוֹלָם, אֶחָד נָטַל הַקַּרְקָעוֹת וְאֶחָד נָטַל אֶת הַמִּטַּלְטְלִין, דֵּין אָמַר אַרְעָא דְּאַתְּ קָאֵם עֲלָהּ דִּידִי, וְדֵין אָמַר מַה דְּאַתְּ לָבֵישׁ דִּידִי, דֵּין אָמַר חֲלֹץ, וְדֵין אָמַר פְּרַח, מִתּוֹךְ כָּךְ (בראשית ד, ח): וַיָּקָם קַיִן אֶל הֶבֶל אָחִיו וַיַּהַרְגֵּהוּ, רַבִּי יְהוֹשֻׁעַ דְּסִכְנִין בְּשֵׁם רַבִּי לֵוִי אָמַר שְׁנֵיהֶם נָטְלוּ אֶת הַקַּרְקָעוֹת, וּשְׁנֵיהֶן נָטְלוּ אֶת הַמִּטַּלְטַלִין, וְעַל מָה הָיוּ מִדַּיְּנִין, אֶלָּא זֶה אוֹמֵר בִּתְחוּמִי בֵּית הַמִּקְדָּשׁ נִבְנֶה וְזֶה אוֹמֵר בִּתְחוּמִי בֵּית הַמִּקְדָּשׁ נִבְנֶה, שֶׁנֶּאֱמַר: וַיְהִי בִּהְיוֹתָם בַּשָּׂדֶה, וְאֵין שָׂדֶה אֶלָּא בֵּית הַמִּקְדָּשׁ, הֵיךְ מַה דְּאַתְּ אָמַר (מיכה ג, יב): צִיּוֹן שָׂדֶה תֵחָרֵשׁ, וּמִתּוֹךְ כָּךְ (בראשית ד, ח): וַיָּקָם קַיִן אֶל הֶבֶל אָחִיו וגו'. יְהוּדָה בַּר אָמֵי אָמַר עַל חַוָּה הָרִאשׁוֹנָה הָיוּ מִדַּיְּנִין, אָמַר רַבִּי אַיְבוּ חַוָּה הָרִאשׁוֹנָה חָזְרָה לַעֲפָרָהּ וְעַל מָה הָיוּ מִדַּיְּנִין, אָמַר רַבִּי הוּנָא תְּאוֹמָה יְתֵרָה נוֹלְדָה עִם הֶבֶל, זֶה אוֹמֵר אֲנִי נוֹטְלָהּ שֶׁאֲנִי בְּכוֹר, וְזֶה אוֹמֵר אֲנִי נוֹטְלָהּ שֶׁנּוֹלְדָה עִמִּי, וּמִתּוֹךְ כָּךְ וַיָּקָם קַיִן. אָמַר רַבִּי יוֹחָנָן הֶבֶל הָיָה גִּבּוֹר מִקַּיִן, שֶׁאֵין תַּלְמוּד לוֹמַר וַיָּקָם, אֶלָּא מְלַמֵּד שֶׁהָיָה נָתוּן תַּחְתָּיו, אָמַר לוֹ שְׁנֵינוּ בָּעוֹלָם מָה אַתְּ הוֹלֵךְ וְאוֹמֵר לְאַבָּא, נִתְמַלֵּא עָלָיו רַחֲמִים, מִיַּד עָמַד עָלָיו וַהֲרָגוֹ, מִן תַּמָּן אִינוּן אָמְרִין טַב לְבִישׁ לָא תַעֲבֵד וּבִישׁ לָא יִמְטֵי לָךְ. וַיַּהַרְגֵּהוּ, בַּמֶּה הֲרָגוֹ, רַבָּן שִׁמְעוֹן בֶּן גַּמְלִיאֵל אָמַר בְּקָנֶה הֲרָגוֹ, שֶׁנֶּאֱמַר (בראשית ד, כג): וְיֶלֶד לְחַבֻּרָתִי, דָּבָר שֶׁעוֹשֶׂה חַבּוּרָה. וְרַבָּנָן אָמְרֵי בְּאֶבֶן הֲרָגוֹ, שֶׁנֶאֱמַר (בראשית ד, כג): כִּי אִישׁ הָרַגְתִּי לְפִצְעִי, דָּבָר שֶׁהוּא עוֹשֶׂה פְּצָעִים. רַבִּי עֲזַרְיָה וְרַבִּי יוֹנָתָן בַּר חַגַּי בְּשֵׁם רַבִּי יִצְחָק אָמַר נִתְבּוֹנֵן קַיִן מְהֵיכָן שָׁחַט אָבִיו אוֹתוֹ הַפָּר, שֶׁנֶּאֱמַר בּוֹ (תהלים סט, לב): וְתִיטַב לַה' מִשּׁוֹר פָּר, וּמִשָּׁם הֲרָגוֹ, מִמְּקוֹם הַצַּוָּאר מְקוֹם הַסִּימָנִין. וּמִי קְבָרוֹ, אָמַר רַבִּי אֶלְעָזָר בֶּן פְּדָת עוֹפוֹת הַשָּׁמַיִם וְחַיּוֹת טְהוֹרוֹת קְבָרוּהוּ, וְנָתַן לָהֶם הַקָּדוֹשׁ בָּרוּךְ הוּא שְׂכָרָן שְׁתֵּי בְּרָכוֹת שֶׁמְבָרְכִים עֲלֵיהֶן, אַחַת לִשְׁחִיטָה וְאַחַת לְכִסּוּי הַדָּם. רַבִּי יְהוֹשֻׁעַ דְּסִכְנִין בְּשֵׁם רַבִּי לֵוִי אָמַר, כְּתִיב (תהלים לז, יד): חֶרֶב פָּתְחוּ רְשָׁעִים וגו', חֶרֶב פָּתְחוּ רְשָׁעִים וְדָרְכוּ קַשְׁתָּם, זֶה קַיִן. (תהלים לז, יד): לְהַפִּיל עָנִי וְאֶבְיוֹן לִטְבוֹחַ יִשְׁרֵי דָרֶךְ זֶה הֶבֶל. (תהלים לז, טו): חַרְבָּם תָּבוֹא בְלִבָּם וגו', (בראשית ד, יב): נָע וְנָד תִּהְיֶה בָּאָרֶץ. (בראשית ד, ט): וַיֹּאמֶר ה' אֶל קַיִן אֵי הֶבֶל אָחִיךָ וגו', מָשָׁל לְאִיפַּרְכוֹס שֶׁהָיָה מְהַלֵּךְ בְּאֶמְצַע פְּלַטְיָא, מָצָא הָרוּג וְאֶחָד עוֹמֵד עַל גַּבָּיו, אָמַר לוֹ מִי הֲרָגוֹ, וַאֲמַר לֵיהּ אֲנָא בָּעֵי לֵיהּ גַּבָּךְ, וְאַתְּ בָּעֵי לֵיהּ גַּבִּי, אֲמַר לֵיהּ לֹא אָמַרְתָּ כְּלוּם, מָשָׁל לְאֶחָד שֶׁנִּכְנַס לְגִנָּה וְלִקֵּט תּוּתִין וְאָכַל, וְהָיָה בַּעַל הַגִּנָּה רָץ אַחֲרָיו אָמַר לוֹ מַה בְּיָדְךָ, אָמַר לוֹ אֵין בְּיָדִי כְּלוּם, אָמַר לוֹ וַהֲרֵי יָדֶיךָ מְלֻכְלָכוֹת. כָּךְ אָמַר לוֹ קַיִן לְהַקָּדוֹשׁ בָּרוּךְ הוּא (בראשית ד, ט): הֲשֹׁמֵר אָחִי אָנֹכִי, אָמַר לוֹ הַקָּדוֹשׁ בָּרוּךְ הוּא הָא רָשָׁע (בראשית ד, י): קוֹל דְּמֵי אָחִיךָ צֹעֲקִים וגו', מָשָׁל לְאֶחָד שֶׁנִכְנַס לְמִרְעֶה וְחָטַף גְּדִי אֶחָד וְהִפְשִׁילוֹ לַאֲחוֹרָיו, וְהָיָה בַּעַל הַמִּרְעֶה רָץ אַחֲרָיו אָמַר לוֹ מַה בְּיָדְךָ, אָמַר לוֹ אֵין בְּיָדִי כְּלוּם, אָמַר לוֹ וַהֲרֵי הוּא מַפְעֶה אַחֲרֶיךָ. כָּךְ אָמַר הַקָּדוֹשׁ בָּרוּךְ הוּא לְקַיִן: קוֹל דְּמֵי אָחִיךָ וגו'. רַבִּי יוּדָן וְרַבִּי הוּנָא וְרַבָּנָן. רַבִּי יוּדָן אוֹמֵר דַּם אָחִיךָ אֵין כְּתִיב כָּאן אֶלָּא דְּמֵי אָחִיךָ, דָּמוֹ וְדַם זַרְעִיּוֹתָיו. רַבִּי הוּנָא אָמַר (מלכים ב ט, כו): אֶת דְּמֵי נָבוֹת, דַּם נָבוֹת וְדַם בָּנָיו אֵין כְּתִיב כָּאן, אֶלָּא אֶת דְּמֵי נָבוֹת וְאֶת דְּמֵי בָנָיו, דָּמוֹ וְדַם זַרְעִיּוֹתָיו. רַבָּנָן אָמְרִין (דברי הימים ב כד, כה): וַיָּמָת בְּדַם יְהוֹיָדָע, אֵין כְּתִיב כָּאן, אֶלָּא בִּדְמֵי יְהוֹיָדָע, דָּמוֹ וְדַם זַרְעִיּוֹתָיו. אָמַר רַבִּי שִׁמְעוֹן בֶּן יוֹחָאי קָשֶׁה הַדָּבָר לְאָמְרוֹ וְאִי אֶפְשָׁר לַפֶּה לְפָרְשׁוֹ, לִשְׁנֵי אַתְּלִיטִין שֶׁהָיוּ עוֹמְדִין וּמִתְגּוֹשְׁשִׁים לִפְנֵי הַמֶּלֶךְ, אִלּוּ רָצָה הַמֶּלֶךְ פֵּרְשָׁן, וְלֹא רָצָה הַמֶּלֶךְ לְפָרְשָׁן, נִתְחַזֵּק אֶחָד עַל חֲבֵרוֹ וַהֲרָגוֹ, וְהָיָה מְצַוֵּחַ וְאָמַר מַאן יִבְעֵי דִּינִי קֳדָם מַלְכָּא, כָּךְ קוֹל דְּמֵי אָחִיךָ צוֹעֲקִים אֵלַי מִן הָאֲדָמָה, לַעֲלוֹת לְמַעְלָה לֹא הָיְתָה יְכוֹלָה שֶׁעֲדַיִן לֹא עָלְתָה לְשָׁם נְשָׁמָה, וּלְמַטָּה לֹא הָיְתָה יְכוֹלָה לַעֲמֹד שֶׁעֲדַיִן לֹא נִקְבַּר שָׁם אָדָם, וְהָיָה דָּמוֹ מֻשְׁלָךְ עַל הָעֵצִים וְעַל הָאֲבָנִים.
“Cain said to Abel his brother. It was when they were in the field. Cain rose up against Abel his brother and killed him” (Genesis 4:8). “Cain said to Abel his brother. It was when they were…” – about what were they quarreling? They said: ‘Let us divide the world between us.’ One took the land and one took the movable property. This one said: ‘The land on which you are standing is mine.’ That one said: ‘What you are wearing is mine.’ That one said: ‘Take it off.’ This one said: ‘Fly.’ As a result: “Cain rose up against Abel his brother and killed him.” Rabbi Yehoshua of Sikhnin said in the name of Rabbi Levi: Both of them took the land and both of them took the movable property. Regarding what, then, were they quarreling? Rather, this one said: ‘The Temple shall be built in my domain,’ and that one said: ‘The Temple shall be built in my domain,’ as it is stated: “It was when they were in the field,” and “field” is nothing other than the Temple, as it says: “Zion will be plowed like a field” (Micah 3:12). As a result: “Cain rose up against Abel his brother…” Yehuda bar Rabbi said: They were quarreling over [who would wed] the first Eve. Rabbi Aivu said: The first Eve had returned to dust. Regarding what, then, were they quarreling? Rabbi Huna said: An extra twin sister was born with Abel. This one [Cain] said: ‘I will take her, as I am the firstborn.’ That one [Abel] said: ‘I will take her, as she was born with me.’ As a result: “Cain rose up.” Rabbi Yoḥanan said: Abel was stronger than Cain, as the verse need not have stated: “rose up.” Rather, it teaches that he had been situated underneath him. He [Cain] said to him: ‘There are the two of us in the world, what will you go and say to Father?’ He [Abel] became filled with mercy for him [and released him]. Immediately, he [Cain] rose up against him and killed him. From there they say: Do not do a favor for a wicked person, and evil will not befall you. “And killed him” – with what did he kill him? Rabban Shimon ben Gamliel said: He killed him with a stick, as it is stated: “Or [have I slain] a child by my bruise?” (Genesis 4:23) – an item that causes a bruise. The Rabbis say: He killed him with a stone, as it is stated: “Have I slain a man by my wound?” (Genesis 4:23) – an item that causes wounds. Rabbi Azarya and Rabbi Yonatan bar Ḥagai said in the name of Rabbi Yitzḥak: Cain looked from where his father had slaughtered that bull in whose regard it is stated: “And may it be pleasing to the Lord like an ox and bull” (Psalms 69:32), and he killed him from there, from the place of the neck, from the place of the signs. Who buried him? Rabbi Elazar ben Pedat said: The birds of the heavens and the kosher beasts buried him, and the Holy One blessed be He rewarded them with the two blessings that one recites over them – one for slaughter and one for covering the blood. Rabbi Yehoshua of Sikhnin said in the name of Rabbi Levi: It is written, “The wicked draw their swords [and stretch their bows to topple the poor and the needy, to slaughter those who are upright in conduct]” (Psalms 37:14). “The wicked draw their swords and stretch their bows” – this is Cain. “To topple the poor and the needy, to slaughter those who are upright in conduct” – this is Abel. “Their swords will come into their own hearts” (Psalms 37:15) – “restless and itinerant you shall be on the earth” (Genesis 4:12). “The Lord said to Cain: Where is Abel your brother? He said: I do not know; am I my brother's keeper?” (Genesis 4:9). “The Lord said to Cain: Where is Abel your brother?” This is analogous to a governor who was walking in the middle of a highway. He found a slain corpse with someone standing over him. He said to him: ‘Who killed him?’ He said to him: ‘I am inquiring about him from you, and you are inquiring about him from me?’ He said to him: ‘What you have said is of no consequence.’ “He said: What have you done? The voice of your brother’s blood is crying out to Me from the ground” (Genesis 4:10). This is analogous to one who entered a garden, picked berries, and ate them. The owner of the garden pursued him. He said: ‘What is in your hand?’ He said to him: ‘There is nothing in my hand.’ He said to him: ‘But your hands are stained.’ So, Cain said to the Holy One blessed be He: “Am I my brother’s keeper?” The Holy One blessed be He said to him: ‘Wicked one, “The voice of your brother’s blood is crying out…”’ (Genesis 4:10). This is analogous to one who entered a pasture, abducted a goat, and held it behind him. The owner of the pasture pursued him. He said to him: ‘What is in your hand?’ He said: ‘There is nothing in my hand.’ He said to him: ‘But it is bleating behind you.’ So, the Holy One blessed be He said to Cain: “The voice of your brother’s blood…” Rabbi Yudan, Rabbi Huna, and the Rabbis, Rabbi Yudan says: “Your brother’s blood [dam]” is not written here, but rather, “Your brother’s bloods [damim]” – his blood and the blood of his potential descendants. Rabbi Huna said: “The bloods [demei] of Navot” (II Kings 9:26). “The blood of Navot and the blood of his sons” is not written here, but rather, “the bloods [demei] of Navot and the bloods [demei] of his sons” – his blood and the blood of his potential descendants. The Rabbis say: “For the blood of [the sons of] Yehoyada…he died” (II Chronicles 24:25) is not written here, but rather, “the bloods of Yehoyada” – his blood and the blood of his potential descendants. Rabbi Shimon ben Yoḥai said: It is difficult to say it, and it is impossible for the mouth to enunciate it: This is analogous to two athletes who were standing and wrestling before the king. Had the king wished, he could have separated them, but the king did not wish to separate them. One overpowered his counterpart and killed him. He [the victim] was screaming and saying: ‘Who will demand justice for me before the king?’ So, “the voice of your brother’s blood is crying out to Me from the ground.” It [Abel’s soul] could not ascend On High because no soul had ever ascended to there yet. And it could not go down [into the ground] and remain there, as no man had ever been buried there, so his blood was cast upon the trees and upon the stones.