In this rule

Historical Rules · 1 September 2023

Rule 506.3f

Official source text from the 1 September 2023 Rules release

If a resolving spell or ability would cause a battle to become an attacking or blocking creature, that part of the effect does nothing.

Find this number in the current Rules