Question: who wrote the song knocking on heaven's door
Answer: `` Knockin ' on Heaven 's Door '' is a song written and sung by Bob Dylan , for the soundtrack of the 1973 film Pat Garrett and Billy the Kid .