I saw either this tweet or one exactly like it yesterday.
Basically they needed one more song for the movie Purple Rain, so Prince came back the next day with When Doves Cry completely finished and ready to go.
What a crazy amount of talent.
https://twitter.com/user/status/1252645622869622784