Energy has been around since the dawn of time.
The first source of energy was the sun, as it provided heat and light during the day.
Energy generation in stars is due to nuclear fusion.