Nearly a hundred and fifty years before adequate apparatus was invented to demonstrate the fact, somebody reasoned their way to the idea that some of the sky's nebulas were composed of stars.
Kant's Constitution of the Fixed Stars
Kant's Systematischen Verfassung unter den Fixsternen (in German)