In a Nutshell:
The Prophet (saw) did not compose poetry, but he recited some separate stanzas composed by other companions. But this does not make him a poet.