`` Sun King '' is a song written by John Lennon but credited to Lennon\/McCartney and recorded by The Beatles for their Abbey Road album . `` Sun King '' is a song written primarily by John Lennon , but credited to Lennon\/McCartney and recorded by The Beatles for their Abbey Road album .