Born in NUMBER@1 CE and originating from PERSON@1 , he paid flattery first and foremost to the courts of the Samanids , but also to the MISC@1 and Ghaznavids , particularly PERSON@2 of LOCATION@1 .

He was poet in the court of PERSON@3 .
