We're going to need more information. How big is your tank? Was it cycled? Did he have tankmates?
What are your water parameters and water change schedule? How often did you feed him?
Did you notice any odd behaviors ie: staying at the top, rubbing against decorations, gasping for air, not eating, etc...