Soul Trap (Morrowind)

 is a spell that will trap a soul into a Soul Gem of sufficient size. In order for it to be used successfully, it must be cast upon a creature that is still alive, and the creature must be killed while the spell is active. You can tell the spell is active by the cloud of smoke that will circle the creature until the duration expires.