La Genèse 4:17 Midrash : Bereshit Rabbah

וַיֵּ֤דַע קַ֙יִן֙ אֶת־אִשְׁתּ֔וֹ וַתַּ֖הַר וַתֵּ֣לֶד אֶת־חֲנ֑וֹךְ וַֽיְהִי֙ בֹּ֣נֶה עִ֔יר וַיִּקְרָא֙ שֵׁ֣ם הָעִ֔יר כְּשֵׁ֖ם בְּנ֥וֹ חֲנֽוֹךְ׃

Caïn connut sa femme; elle conçut et enfanta Hénoc. Caïn bâtissait alors une ville, qu’il désigna du nom de son fils Hénoc.

Bereshit Rabbah

“Cain was intimate with his wife and she conceived, and gave birth to Ḥanokh; he was the builder of a city, and he called the name of the city after the name of his son Ḥanokh” (Genesis 4:17).
“Cain was intimate with his wife.” “Their houses will endure in their midst forever” (Psalms 49:12). Rabbi Yudan and Rabbi Pinḥas, Rabbi Yudan said: What do the wicked believe? “Their houses will endure in their midst forever…they name their lands after themselves” (Psalms 49:12); Tiberias after Tiberius, Alexandria after Alexander, Antioch after Antiochus. Rabbi Pinḥas said: “Their houses will endure in their midst (kirbam) forever”; tomorrow their house will become their graves (kivram). “Their abodes will remain for all generations” (Psalms 49:12), as they will neither live nor be judged [at the resurrection].1The grave will be their “abode for all generations.” Moreover, “they name their lands after themselves” – “he was the builder of a city, and he called the name of the city after the name of his son Ḥanokh.”