וְהָ֣אָדָ֔ם יָדַ֖ע אֶת־חַוָּ֣ה אִשְׁתּ֑וֹ וַתַּ֙הַר֙ וַתֵּ֣לֶד אֶת־קַ֔יִן וַתֹּ֕אמֶר קָנִ֥יתִי אִ֖ישׁ אֶת־יְהוָֽה׃
און דער מענטש האָט דערקענט זײַן װײַב חַוָהן, און זי איז טראָגעדיק געװאָרן, און האָט געבאָרן קַיִנען, און זי האָט געזאָגט: איך האָב געקריגן אַ מאַן דורך גאָט.
Midrash Aggadah
And she said, "I have acquired a man with the Lord." She said, "In the past, I and my husband would form [it] and the Holy One, blessed be He, would join with us in its formation. For the limbs would be because of me and because of my husband and the soul would be from God. Hence, let us call him, Cain, since I acquired (kaniti) a man with the Lord — this child was created [only] between Him and I."
Midrash Tanchuma Buber
Another interpretation (of Gen. 18:1): AS HE WAS SITTING AT THE TENT DOOR IN (literally: AS) THE HEAT OF THE DAY. What is the meaning of AS THE HEAT OF THE DAY? That the Holy One made that day as hot as the day of judgment. It is so stated (in Mal. 3:19 [4:1]): FOR, BEHOLD, THE DAY IS AT HAND, BURNING LIKE AN OVEN….
Sefer HaYashar (midrash)
And Adam knew Eve his wife, and she bore two sons and three daughters. And she called the name of the first-born Cain, saying: I have gotten a man from the Lord. And the name of the second she called Abel, for she said: In vanity have we come to the earth and in vanity we shall be taken away from it. And when the boys grew up, their father gave them possessions in the land. And Cain was a tiller of the ground, while Abel became a keeper of sheep. And it came to pass after a number of years that the boys brought an offering to the Lord.