Finish Eggmanland, then defeat the final boss, Dark Gaia. The credits roll once that fight is done.
There is no separate condition to satisfy — no collectible count or side quest — so if the credits have not appeared, the boss fight is almost certainly what is still standing in your way.