This story first appears in a work called "Anis al-Nas" by Shoja' Shirazi (1426), and it was elaborated on in a collection of biographies of poets ("Tazkerāt aš-Šo'arā") completed in 1486 by Dawlatshah Samarqandi.