Here the word "their" refers to human beings. Here the "hearts" of the people represent their thoughts and desires. Alternate translation: "placed eternity in the hearts of human beings" or "caused people to think about eternal things" (See: [[rc://en/ta/man/jit/figs-metonymy]])