Not obtainable in: Sun, Ultra Sun. Trade it over from another game.
Locations from PokeAPI, for Brilliant Diamond/Shining Pearl, Legends: Arceus, Scarlet/Violet and Legends: Z-A from PKHeX. Omega Ruby/Alpha Sapphire locations are still incomplete; their version exclusives are marked.