Khāqāni or Khāghāni (Persian: خاقانی) (1121/1122, Shamakhi – 1190, Tabriz), was a Persian poet. He was born in the historical region known as Shirvan (located now in present country of Azerbaijan), under the Shirvanshah (a vassal of the Seljuq empire) and died in Tabriz, Iran.
Khaqani (real name, Afzaladdin Badil (Ibrahim) ibn Ali Nadjar) was born into the family of a carpenter in Shamakhy. Khaqani lost his father at an early age and was brought up by his uncle, Kafi-eddin Umar Shervani, a doctor and astronomer at the Shirvanshah’s court, who for seven years (until his death) acted "both as nurse and tutor" to Khaghani. Khaqani's mother, originally of Nestorian faith, later accepted Islam. The poet himself had a remarkable knowledge of Christianity, and his poetry is profused with Christian imagery and symbols. He was also taught by his cousin (son of Kafi-eddin Umar) in philosophy. His master in poetry was the famous Abul-Ala Ganjavi who introduced him to the court of Khaqan Manuchehr Shirvanshah and Khaqani got his title from this king. He also married daughter of Abul-Ala.
Work and legacy
In his youth, Khaghani wrote under the pen-name Haqai'qi ("Seeker"). After he had been invited to the court of the Shirvanshah Abu'l Muzaffar Khaqan-i-Akbar Manuchiher the son of Faridun, he assumed the pen-name of Khaqani ("regal"). The na'at (a poem in praise of Prophet Muhammad) written at the time when his literary talent had reached its peak, procured him the title Hassān'l-A'jam (The Persian Hassān)(حسان العجم). Hassan ibn Thabit being a famous Arabic poet who composed panegyrics in praise of Prophet Muhammad, Khaqani's title is reference to the fact that he was the Persian Hassan.
As well as Diwān, Khāqāni left some letters and a lesser known 'Ajaibu l-Gharyib (Curious Rarities). The life of a court poet palled on him, and he "fled from the iron cage where he felt like a bird with a broken wing" and set off a journey about the Middle East. His travels gave him material for his famous poem Tohfat-ul Iraqein (in Persian: تحفه العراقين meaning A Gift from the Two Iraqs), the two Iraqs being 'Persian Iraq' (western Iran) and 'Arabic Iraq' (Mesopotamia)). This book supplies us with a good deal of material for his biography and in which he described his impressions of the Middle East. He also wrote his famous qasida The Portals at Madain (in Persian: ايوان مداين) beautifully painting his sorrow and impression of the remains of Sassanid's Palace near Ctesiphon.
On return home, Khaqani broke off with the court of the Shirvanshah’s, and Shah Akhsitan gave order for his imprisonment. It was in prison that Khaqani wrote one of his most powerful anti-feudal poems called Habsiyye (Prison Poem). Upon release he moved with his family to Tabriz where fate dealt with him one tragic blow after another: first his young son died, then his daughter and then his wife. Khaqani composed moving elegies for all three most of which have survived and are included in his diwan. Khagani was left all alone, and he soon too died in Tabriz. He was buried at the Poet’s Cemetery in Surkhab Neighbourhood of Tabriz.
Khaqani left a remarkable Persian-language heritage which includes some magnificent odes-distiches of as many as three hundred lines with the same rhyme, melodious ghazals, dramatic poems protesting against oppression and glorifying reason and toil, and elegies lamenting the death of his children, his wife and his relatives.
According to Jan Rypka:
|“||A Master of the language, a poet possessing both intellect and heart, who fled from the outer world to the inner world, a personality who did not conform to type - all this places him in the front ranks of Persian literature.||”|
Some of the quatrains of Khaqani are also recorded in the book Nozhat al-Majales.
Sample Rubaiyat (Quatrains)
مرغی که نوای درد راند عشق است
پيکی که زبان غيب داند عشق است
هستی که به نيستيت خواند عشق است
وآنچ از تو ترا باز رهاند عشق است
English translation by R. Saberi:
The bird that sings the song of pain is love
The courier who knows the tongue of the Unseen is love
The existence that call you to nonexistence is love
And that which redeems you from you is love
دانی ز جهان چه طرف بربستم هيچ
وز حاصل ايام چه در دستم هيچ
شمع خردم ولی چو بنشستم هيچ
آن جام جمم ولی چو بشکستم هيچ
English Translation by R. Saberi:
Do you know what I benefitted from this world? Nothing
And what I gained from the days of life? Nothing
I am a candle of wisdom; but when extinguished, nothing
I am the cup of Jamshid; but when broken nothing
- Jan Rypka, History of Iranian Literature. Reidel Publishing Company. 1968 OCLC 460598. ISBN 90-277-0143-1
- Anna Livia Beelaert, "Khaqani Sherwani" in Encyclopædia Iranica 
- R. Saberi A Thousand Years of Persian Rubaiyat: An Anthology of Quatrains from the Tenth to the Twentieth Century Along With the Original Persian (Paperback) by Reza Saberi (Editor, Translator)
- Anna Livia Beelaert, "Khaqani Sherwani" in Encyclopædia Iranica 
- Rebecca Gould, "The Political Cosmology of Prison Poetics: Khāqānī of Shirwān on Muslim–Christian Difference," Literature Compass 11.7 (2014): 496–515.
- Robert T. Lambdin, Laura C. Lambdin, Encyclopedia of Medieval Literature, Greenwood Publishing Group, 2000. pg 134: "The Twelfth century Persian Khaqani Sharvani wrote a poem entitled "The Language of the Birds" apparently related to the better-known work of his Persian contemporary Farid Ud-Din Attar, the Conference of the Birds
- Reinert, B. "Ḵh̲āḳānī , afḍal al-dīn ibrāhīm (Badīl) b. ʿalī b. ʿut̲h̲mān." Encyclopaedia of Islam, Second Edition. Edited by: P. Bearman, Th. Bianquis , C.E. Bosworth , E. van Donzel and W.P. Heinrichs. Brill, 2009. Brill Online. Excerpt: ", outstanding Persian poet, born about 520/1126, d. 595/1199, who left a diwan , the mathnawi called Tuhfat al-Irāqayn and sixty letters. "
- Anna Livia Beelaert, "Khaqani Sherwani" in Encyclopedia Iranica]: "ḴĀQĀNI ŠERVĀNI (or Šarvāni), AFŻAL-AL-DIN BADIL B. ʿALI B. ʿOṮMĀN, a major Persian poet and prose writer (b. Šervān, ca. 521/1127; d. Tabriz, between 582/1186-87 and 595/1199). " 
- Annemarie Schimmel, Burzine K. Waghmar , The empire of the great Mughals: history, art and culture, Reaktion Books, 2004. pg 260: "The poet call this portrayal 'Fragrant Bouquet,' Dastanbu, a word user by the Persian poet Khaqani (died 1199) in a poem of praise to spouse of his patron"
- Lloyd V. J. Ridgeon, Islamic interpretations of Christianity, Palgrave Macmillan, 2001. pg 123: "Quatrain attributed to the Persian poet Khaqani (d. 1200)
- Khaqani in Encyclopedia Britannica:" Persian poet, whose importance rests mainly on his brilliant court poems, satires, and epigrams."
- Jan Rypka, History of Iranian Literature. Reidel Publishing Company. 1968. pp 203-208.
- Big Soviet Encyclopedia
- Гулизаде М. Ю. Литература Азербайджана. Литература XII в. Хагани // История всемирной литературы в девяти томах. — М.: Наука, 1984. — Т. II. — С. 326.