Common mix-up. "Here Comes the Sun" was written by George Harrison and appears on The Beatles' 1969 masterpiece Abbey Road.
Richie Havens covered the song (beautifully, on his 1970 album Stonehenge), and his folk-gospel arrangement is beloved. But cover ≠ composition. Havens was a brilliant interpreter—his Woodstock "Freedom/Motherless Child" improvisation is legendary—but "Here Comes the Sun" is 100% Harrison.
Written at Eric Clapton's house during a brief escape from Apple Corps business meetings. The lyrics reflect literal relief: "Here comes the sun, and I say it's all right." One of the few Beatles songs with a pure, uncomplicated joy.