Unfortunately, you can't download Sonic for free — the games aren't offered at no cost.
To play legitimately, you'll need to purchase the game through an official retailer or storefront.