Most Christmas carols were written by different people for the words and the music, but not this one — John Henry Hopkins Jr. wrote both in 1857 for a Christmas pageant in New York. It's also one of the few well-known carols that's actually about the three wise men, rather than the manger scene itself.
Free piano sheet music for "We Three Kings (Short Version)"