In this rule

Historical Rules · 12 April 2024

Rule 508.3d

Official source text from the 12 April 2024 Rules release

An ability that reads “Whenever [a player] attacks, . . .” triggers if one or more creatures that player controls are declared as attackers.

Find this number in the current Rules