Generation Viii
Wandering Spirit
The Pokémon exchanges Abilities with a Pokémon that hits it with a move that makes direct contact.
Detailed Effect
The Pokémon exchanges Abilities with a Pokémon that hits it with a move that makes direct contact.
Pokémon With Wandering Spirit
2 canonical Pokémon forms can have this Ability.

Runerigus 
Galarian Yamask