This poem was not written by a single person, but was a famous line in Bai Juyi's Song of Everlasting Regret from the Tang Dynasty. The whole sentence is: "The harem has three thousand beauties and three thousand dotes on them." This sentence was used to describe the love story between Emperor Xuanzong of the Tang Dynasty and Yang Guifei. This poem also became a classic in the history of Chinese literature, widely quoted and praised.