Written and first recorded by Paul Jabara (1978).
Hit version by Donna Summer (US #3/R&B #5/UK #51 NETH #8 1978).
From the wiki: “‘Last Dance’ was written by Paul Jabara and first recorded by him in 1978. According to the song’s co-producer Bob Esty, Paul Jabara locked Donna Summer in a Puerto Rico hotel bathroom and forced her to listen to a cassette of him singing a rough version of ‘Last Dance’. Summer liked the song and Jabara asked Esty to work with him on an arrangement for Summer to use for her recording.