The sentence is in the simple past tense ("He composed").
The passive form uses "was" + past participle ("composed").
So, "A beautiful song was composed by him." is the correct passive voice.
Get instant updates and alerts directly from our site.
Install this app on your device for quick access right from your home screen.