The opening paragraph of each ability found on an action card describes when a player can resolve that card’s ability.
This is the official Living Rules Reference wording under Abilities.
LRR v2.0 (base game / Prophecy of Kings); specific card abilities may override the general rule.