Ancient philosophers as far back as Thales of Miletus had the idea that there is some underlying substance of which everything is made. But that is not the same as our concept of "mass-energy" today (for example, Thales thought the underlying substance was water).