{
 "id": "person/al-khunaji",
 "class": "person",
 "slug": "al-khunaji",
 "label": {
  "ar": "أفضل الدين الخونجي",
  "en": "Afdal al-Din al-Khunaji"
 },
 "summary": {
  "ar": "قاضي القضاة الشافعي؛ ولد في جمادى الأولى سنة تسعين وخمسمائة واشتغل في العجم ثم قدم مصر وولي قضاءها وطلب وحصل وبالغ في علوم الأوائل حتى تفرد برياسة ذلك في زمانه وأفتى وناظر، وصنف الموجز والجمل وكشف الأسرار وكتاب أدوار الحياة؛ ورثاه تلميذه العز الأربلي الضرير؛ وكان تلحقه غفلة فيما يفكر فيه من المسائل العقلية حتى أدخل يده في رزة إبريق عند السلطان ونسى نفسه في الفكرة فقام الجماعة وبقي جالساً تمنعه أصبعه من القيام فأحضر حداداً فخلص أصبعه {cite:shadharat-dhahab p. 244-245}.",
  "en": "The Shafi'i qadi al-qudat and logician (b. 590, d. Ramadan 646, Muqattam) — alone in his age's headship of the ancients' sciences; author of al-Mujaz, al-Jumal and Kashf al-Asrar; so abstracted that his finger once had to be freed by a blacksmith from the sultan's ewer-spout while he lost himself in a problem {cite:shadharat-dhahab p. 244-245}."
 },
 "stub": false,
 "wings": [
  "people"
 ],
 "regions": [
  "persia-central-asia",
  "egypt-nile"
 ],
 "periods": [
  "period/crusades-ayyubid-mamluk"
 ],
 "tags": [],
 "aliases": [],
 "themes": [],
 "span": {
  "earliest": 1194.0004928232613,
  "latest": 1249.0871818038383
 },
 "display": {
  "start": {
   "edtf": "1194",
   "hijri": "0590-05",
   "calendar": "julian",
   "precision": "month",
   "status": "tradition",
   "derived": true,
   "note": "ولد في جمادى الأولى سنة تسعين وخمسمائة {cite:shadharat-dhahab p. 244}."
  },
  "end": {
   "edtf": "1249-01~",
   "hijri": "0646-09",
   "calendar": "julian",
   "precision": "month",
   "status": "tradition",
   "derived": true,
   "note": "مات في رمضان سنة ست وأربعين وستمائة ودفن بسفح المقطم؛ قال أبو شامة كان حكيماً منطقياً {cite:shadharat-dhahab p. 245}."
  }
 },
 "data": {
  "names": [
   {
    "value": "أفضل الدين الخونجي محمد بن ناماور بن عبد الملك قاضي القضاة أبو عبد الله الشافعي",
    "kind": "full"
   }
  ],
  "born": {
   "edtf": "1194",
   "hijri": "0590-05",
   "calendar": "julian",
   "precision": "month",
   "status": "tradition",
   "derived": true,
   "note": "ولد في جمادى الأولى سنة تسعين وخمسمائة {cite:shadharat-dhahab p. 244}."
  },
  "died": {
   "edtf": "1249-01~",
   "hijri": "0646-09",
   "calendar": "julian",
   "precision": "month",
   "status": "tradition",
   "derived": true,
   "note": "مات في رمضان سنة ست وأربعين وستمائة ودفن بسفح المقطم؛ قال أبو شامة كان حكيماً منطقياً {cite:shadharat-dhahab p. 245}."
  },
  "gender": "male",
  "roles": [
   "scholar",
   "jurist",
   "philosopher"
  ],
  "faith": [
   {
    "value": "sunni-shafii",
    "basis": "tradition"
   }
  ],
  "sources": [
   "source/shadharat-dhahab"
  ],
  "status": {
   "review": "draft",
   "completeness": 1,
   "generated_by": "Devin (SWE-2 High)"
  },
  "provenance": {
   "layer": "own-research",
   "source": "شذرات الذهب — ابن العماد (ج5، سنة 646)، قراءة آبل فيجن",
   "generated_by": "Devin (SWE-2 High) from Apple Vision OCR",
   "run": "lib-shadharat-batch-127"
  }
 },
 "prose": {
  "ar": {
   "sections": [
    {
     "heading": "موجز",
     "markdown": "الخونجي قاضي القضاة الشافعي؛ ولد في جمادى الأولى سنة تسعين وخمسمائة واشتغل في العجم، ثم قدم مصر وولي قضاءها وطلب وحصل وبالغ في علوم الأوائل حتى تفرد برياسة ذلك في زمانه وأفتى وناظر. {cite:shadharat-dhahab p. 244-245}"
    },
    {
     "heading": "غفلته",
     "markdown": "وصنف الموجز والجمل وكشف الأسرار وكتاب أدوار الحياة؛ ورثاه تلميذه العز الأربلي الضرير؛ وكان تلحقه غفلة فيما يفكر فيه من المسائل العقلية، حتى أدخل يده في رزة إبريق عند السلطان ونسى نفسه في الفكرة، فقام الجماعة وبقي جالساً تمنعه أصبعه من القيام فأحضر حداداً فخلص أصبعه. {cite:shadharat-dhahab p. 244-245}"
    }
   ],
   "frontmatter": {
    "id": "person/al-khunaji",
    "lang": "ar",
    "source_lang": "ar",
    "translators": []
   },
   "updated": "2026-10-21"
  },
  "en": {
   "sections": [
    {
     "heading": "Overview",
     "markdown": "Al-Khunaji, the Shafi'i chief qadi; born Jumada I 590, he studied in the non-Arab lands, then came to Egypt and held its judgeship — seeking and attaining — and plunged into the sciences of the ancients until he alone held their headship in his time, giving fatwa and debating. {cite:shadharat-dhahab p. 244-245}"
    },
    {
     "heading": "His absentmindedness",
     "markdown": "He composed al-Mujiz, al-Jumal, Kashf al-asrar and Kitab adwar al-hayat; his blind pupil al-'Izz al-Irbili mourned him in verse. Absentmindedness would overtake him in the rational problems he pondered: once at the sultan's he put his hand into the spout-ring of a ewer and forgot himself in thought — the company rose while he remained seated, his finger holding him down, until a blacksmith was brought to free it. {cite:shadharat-dhahab p. 244-245}"
    }
   ],
   "frontmatter": {
    "id": "person/al-khunaji",
    "lang": "en",
    "source_lang": "ar",
    "translators": []
   },
   "updated": "2026-10-21"
  },
  "ur": {
   "sections": [
    {
     "heading": "خلاصہ",
     "markdown": "خونجي شافعی قاضی القضاۃ؛ جمادی الاولیٰ 590 میں پیدا ہوا، عجم میں پڑھا، پھر مصر آیا اور قضاء سنبھالا — طلب کیا اور پایا — اور علوم الأوائل میں اتنا ڈوبا کہ اپنے زمانے میں ان کی ریاست اس پر منفرد ہوئی، افتا اور مناظرہ کیا۔ {cite:shadharat-dhahab p. 244-245}"
    },
    {
     "heading": "غفلت",
     "markdown": "تصانیف: الموجز، الجمل، کشف الاسرار اور کتاب ادوار الحياة؛ اس کے نابینا شاگرد عز اربلی نے مرثیہ لکھا؛ عقلی مسائل کی فکر میں غفلت اس پر طاری ہوتی — ایک بار سلطان کے پاس اس نے ہاتھ آبگینہ کے نال میں ڈالا اور فکر میں اپنے آپ کو بھول گیا؛ مجمع اٹھا اور وہ بیٹھا رہا، اس کی انگلی اسے اٹھنے نہ دے رہی، یہاں تک کہ لُہار لا کر انگلی نکلوائی گئی۔ {cite:shadharat-dhahab p. 244-245}"
    }
   ],
   "frontmatter": {
    "id": "person/al-khunaji",
    "lang": "ur",
    "source_lang": "ar",
    "translators": []
   },
   "updated": "2026-10-21"
  }
 },
 "degree": 4,
 "contemporaries": [
  "person/abu-al-abbas-al-qurti",
  "person/abu-al-hajjaj-al-biyasi",
  "person/abu-bakr-ibn-qawam",
  "person/ahmad-ibn-yusuf-al-tifashi",
  "person/ajiba-bint-al-baqdari",
  "person/al-baydawi-abd-allah-ibn-umar",
  "person/al-hasan-al-saghani",
  "person/al-kamal-al-darir",
  "person/al-khasruwshahi",
  "person/al-muazzam-turanshah-al-kabir",
  "person/al-mursi",
  "person/al-mursi-lawraqi"
 ],
 "updated": "2026-10-18",
 "connections": [
  {
   "to": "place/cairo",
   "type": "died_in",
   "inverse": false,
   "sources": [
    "source/shadharat-dhahab"
   ]
  },
  {
   "to": "place/cairo",
   "type": "buried_in",
   "inverse": false,
   "sources": [
    "source/shadharat-dhahab"
   ]
  }
 ],
 "related": [
  "building/al-azhar",
  "building/dar-al-hikma-cairo",
  "event/baybars-sultan-accession-658",
  "event/capture-of-cairo-1517",
  "event/death-of-shirkuh-564",
  "event/egypt-earthquake-608",
  "event/egypt-famine-plague-695",
  "event/four-qadis-egypt-663"
 ],
 "license": {
  "prose": "CC BY-SA 4.0",
  "data": "CC0 1.0"
 }
}