Where you can find Sonic the Hedgehog (2006) depends a lot on your region, but game retailers are the usual starting point.
Since the game is now fairly old, brand-new copies can be scarce. Your best bet is the second-hand market, used-game stores, or online marketplaces where it still turns up from time to time.