In this rule

Historical Rules · 1 September 2023

Rule 508.3e

Official source text from the 1 September 2023 Rules release

An ability that reads “Whenever [a player] attacks [another player], . . .” triggers if one or more creatures the first player controls are declared as attackers attacking the second player. It won’t trigger if a creature is put onto the battlefield attacking or if a creature attacks a planeswalker or a battle.

Find this number in the current Rules