Sonic Heroes — released in 2003, two years ahead of Shadow the Hedgehog in 2005.
It's a notable predecessor in context, since Sonic Heroes is where Shadow returned after his apparent fate in Sonic Adventure 2, setting up the spin-off that followed. The team-based gameplay of Heroes also marks a clear break from the Adventure-era style, which makes the pair an interesting contrast to play back to back.