Alahazrat didn't sit to write poetry. When love for RasulAllah ﷺ would overflow, he would pen his feelings. So it was very spontaneous. https://sunniport.com/index.php?threads/kis-ke-jalwe-ki-jhalak-hai.10330/#post-39030
Ibn Durayd is mentioned in Tabaqat Ash-Shafi3iyyatil Kubra as the most scholarly poet and the most poetic scholar - أعلم الشعراء وأشعر العلماء In our subcontinental Urdu language and culture that title certainly goes to Ala Hazrat without any doubt. It's my personal opinion that his Salam is the Urdu speakers' Burdah, notwithstanding the rest of his poetry. Allah knows best.