You can purchase a Soul Trap spell at any Mages Guild in Oblivion. Just visit one of their locations, browse the available spells, and you'll be able to buy it from the guild's spell merchants. It's a handy spell to have for capturing souls to power your enchanted items.