Afzal ad- Din Badil Ibrahim ibn Ali Nadjar Khaqani Shirvani (1120-1190) () or Khaghani Shirvani was a Persian poet. His most famous poem is "The Arch of Madain"(). He wrote the poem book "Tohfat-ul Iraqein" (in Persian: تحفه العراقين meaning A Gift from the Two Iraqs) in his journey to Mesopotamia. The Shirvanshah ordered his officers to imprison him. Khaghani was in prison for nearly five years. In prison, he wrote the poems called Habsiyye (, meaning "The Prison Book"). After he was freed, he moved to Tabriz. Khaghani died in Tabriz.