The first person credited with obtaining a spectrum by passing light through a prism was Isaac Newton.
In his experiments conducted around 1666, Newton demonstrated that white light could be separated into its constituent colors (a spectrum) by passing it through a glass prism. He further showed that recombining these colors could recreate white light.
Newton's work established that the colors were properties of the light itself, not alterations caused by the prism.