Egyptian "Tale of Two Brothers"
In https://www.academia.edu/165599219 Patrice Lajoye compared the Egyptian "Tale of Two Brothers", with Anup and his younger brother Bata (who married a woman made by the 9 gods, given a "spark" from each) to the Greek Prometheus and his younger brother Epimetheus (who married a woman made by the god Hephaestus, given a gift from each). Bata's wife betrayed him many times, Epimetheus's wife unintentionally unleashed many evils.
Prometheus & Epimetheus are, in several ways, also related to the giant Ἀλωάδαι \ Aloadae (Otos and Ephialtes), the Indian Sunda & Upasunda, other brothers in Celtic myths, etc. Some of these are enemies or opponents of the Gods, who make a woman intending for her to betray them. The motif of betrayal is linked with an external heart/soul, making one man difficult to kill, or other conditions that must be met to kill him (neither day nor night, etc.). In all these, the dead man undergoing 3 stages of resurrection (in which a burned tree leaves a splinter from which the next can arise, etc.) are prominent, found in similar form across Europe & matching that in Egypt.
Lajoye's idea that it might be recent (compared to its earliest attestation) seems very unlikely to me. These are too intertwined with myths of origins, etc., for that to be really practical. In an ancient & primitive culture, magic men being able to remove their hearts & place them hidden in safekeeping to avoid death are much more believable than in any later culture. Having this belief, including it in a very early story about trying to & failing to avoid death seems natural.