i think it depends on how you approach the lyrics. if you want to make sure that you can fit all of the lyrical passages you want to in a song, i'd probably write the lyrics then write the music around the lyrics written. this way, you aren't constricted to the composition of the music. however, i think that if you write the lyrics first, the music is restrained a bit.