Ball Fetch

Effect:

If the Pokémon is not holding an item, it will fetch the first Poké Ball that failed to catch a Pokémon, regardless of the type of ball.

Ball Fetch is introduced in Gen 8: