Spoon·er·ism \spoo-nuh-riz-uhm\, noun:

The accidental transposition of syllables or sounds in a word or phrase.