If Rally the Forces is cast before attackers are declared or after combat ends, it won’t do anything.

Artwork
Loading artwork…
Rally the Forces
Mirrodin Besieged · #73 · EN
Nonfoil—Foil—
Card rules
Attacking creatures get +1/+0 and gain first strike until end of turn.
"Drive them back! Make their underworld into their grave!" —Koth of the Hammer
Common · Illustrated by Steven Belledin
Format legality
Commander Legal
Duel Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Pauper Legal
Pauper Commander Legal
Penny Legal
PreDH Legal
Tlr Legal
Vintage Legal
Alchemy Not Legal
Brawl Not Legal
Competitive Brawl Not Legal
Future Not Legal
Gladiator Not Legal
Historic Not Legal
Old School Not Legal
Pioneer Not Legal
Premodern Not Legal
Standard Not Legal
Standard Brawl Not Legal
Timeless Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions
Even though Rally the Forces affects only attacking creatures, the bonus will remain for the rest of the turn.