Not about dividing the soul specifically, but the Horcruxes of Harry Potter may well have been inspired by the story of Koschei the Deathless. It's an old Russian fairy tale in which the antagonist is immortal due to his soul being stored outside of his body.