In this rule

Historical Rules · 10 August 2018

Rule 400.7c

Official source text from the 10 August 2018 Rules release

Permalink

If an ability of a permanent requires information about choices made as that permanent was cast as a spell, including what mana was spent to cast that spell, it uses information about the spell that became that permanent as it resolved.

Find this number in the current Rules