In this rule

Historical Rules · 8 September 2022

Rule 117.1d

Official source text from the 8 September 2022 Rules release

Permalink

A player may activate a mana ability whenever they have priority, whenever they are casting a spell or activating an ability that requires a mana payment, or whenever a rule or effect asks for a mana payment (even in the middle of casting or resolving a spell or activating or resolving an ability).

Find this number in the current Rules