If it’s the turn Stampeding Horncrest comes under your control, and it loses haste after being declared as an attacker, it will continue to attack. It won’t be removed from combat. On the other hand, if it loses haste before your declare attackers step, it won’t be able to attack.

Artwork
Loading artwork…
Stampeding Horncrest
Rivals of Ixalan · #116 · EN
Nonfoil—Foil—
Card rules
This creature has haste as long as you control another Dinosaur.
4/4
When the golden city opened, the dinosaurs inside were eager to greet the new visitors.
Common · Illustrated by Jonathan Kuo
Format legality
Brawl Legal
Commander Legal
Competitive Brawl Legal
Duel Legal
Gladiator Legal
Historic Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Pauper Legal
Pauper Commander Legal
Penny Legal
Pioneer Legal
Timeless Legal
Vintage Legal
Alchemy Not Legal
Future Not Legal
Old School Not Legal
PreDH Not Legal
Premodern Not Legal
Standard Not Legal
Standard Brawl Not Legal
Tlr Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions