Historical Rules · 29 September 2017
Rule 506.4a
Official source text from the 29 September 2017 Rules release
Once a creature has been declared as an attacking or blocking creature, spells or abilities that would have kept that creature from attacking or blocking don’t remove the creature from combat.