Mac Davis penned this song with Billy Strange. They wrote it for Elvis, a US television special featuring Elvis Presley, that aired on December 3, 1968 on the NBC television network. Davis recalled to Billboard magazine: "They had asked for a song about looking back over the years, and oddly enough, I had to write it in one night. I stayed up all night at Billy Strange's house in Los Angeles. He had a little office set up in his garage. I wrote it right there."