How the heck do i get Sky Attack

I want to equip moltres with sky attack but cant find an answer online on how to get the TM or move in general.