He was the court poet to the Samanid ruler Nasr II ( 914 -- 943 ) in Bukhara .
Court poet eventually fell out of favour .
He was the court poet to the Samanid ruler Nasr II ( 914 -- 943 ) in Bukhara , although he eventually fell out of favour .