{
 "id": "question/what-was-khandaq",
 "class": "question",
 "slug": "what-was-khandaq",
 "label": {
  "ar": "ما غزوة الخندق والأحزاب؟",
  "en": "What were the Battles of the Trench and the Confederates?"
 },
 "summary": {
  "ar": "الخندق شوال 5هـ/627م؛ حاصر الأحزاب المدينة فحفر سلمان خندقًا حولها وصمد المسلمون شهرًا حتى صرف الله الأحزاب بريح وبرد."
 },
 "stub": false,
 "wings": [],
 "regions": [],
 "periods": [],
 "tags": [],
 "aliases": [],
 "themes": [
  "history-writing-and-social-thought"
 ],
 "data": {
  "question": {
   "ar": "ما غزوة الخندق والأحزاب؟"
  },
  "short_answer": {
   "ar": "الخندق شوال 5هـ/627م؛ حاصر الأحزاب المدينة فحفر سلمان خندقًا حولها وصمد المسلمون شهرًا حتى صرف الله الأحزاب بريح وبرد."
  },
  "long_answer": {
   "ar": "[[event/battle-of-the-trench|الخندق]] حصار عشرة آلاف من قريش وغطفان ويهود قريظة للمدينة؛ اقترح سلمان حفر الخندق فصمدت المدينة بلا قتال كبير حتى بعث الله الريح فتفرق الأحزاب؛ بعدها انتهى خطر قريظة وقويت شوكة الإسلام. {cite:wikidata}"
  },
  "related": [
   "event/battle-of-the-trench"
  ],
  "provenance": {
   "layer": "own-research",
   "source": "Devin general-knowledge draft; verify against cited source",
   "generated_by": "Devin (SWE-2 High)",
   "model": "SWE-2 High",
   "run": "questions-cities-batch-6"
  },
  "sources": [
   "source/wikidata"
  ],
  "status": {
   "review": "draft",
   "completeness": 1,
   "generated_by": "Devin (SWE-2 High), questions lane, 2026-10-16"
  }
 },
 "prose": {
  "ar": {
   "sections": [
    {
     "heading": "موجز",
     "markdown": "الخندق شوال 5هـ/627م؛ حاصر الأحزاب المدينة فحفر سلمان خندقًا حولها وصمد المسلمون شهرًا حتى صرف الله الأحزاب بريح وبرد. {cite:wikidata}"
    }
   ],
   "frontmatter": {
    "id": "question/what-was-khandaq",
    "lang": "ar",
    "source_lang": "ar",
    "translators": []
   }
  },
  "en": {
   "sections": [
    {
     "heading": "Overview",
     "markdown": "The Battle of the Trench took place in Shawwal 5 AH / 627 CE. The confederates besieged the city, and Salman dug a trench around it. The Muslims held out for a month until God turned back the confederates with a wind and cold. {cite:wikidata}"
    }
   ],
   "frontmatter": {
    "id": "question/what-was-khandaq",
    "lang": "en",
    "source_lang": "ar",
    "translators": [
     "Claude Haiku 5.5 (claude-haiku-5-5), draft translation"
    ]
   }
  },
  "ur": {
   "sections": [
    {
     "heading": "خلاصہ",
     "markdown": "خندق شوال 5 ہجری (627ء) میں ہوئی؛ احزاب نے مدینہ کا محاصرہ کیا، سلمان نے مدینہ کے گرد خندق کھودی، اور مسلمانوں نے ایک ماہ تک ثابت قدمی دکھائی یہاں تک کہ اللہ نے ہوا اور سردی سے احزاب کو لوٹا دیا۔ {cite:wikidata}"
    }
   ],
   "frontmatter": {
    "id": "question/what-was-khandaq",
    "lang": "ur",
    "source_lang": "ar",
    "translators": [
     "Claude Haiku 5.5 (claude-haiku-5-5), draft translation"
    ]
   }
  }
 },
 "degree": 0,
 "contemporaries": [],
 "connections": [],
 "related": [
  "concept/khilaf-adad-al-maghazi",
  "concept/waqf-al-nasab-inda-maadd",
  "person/abd-al-jabbar-al-jumurd",
  "person/abd-al-rahman-al-jabarti",
  "person/abd-al-rahman-badawi",
  "person/abu-al-arab-al-tamimi-muhammad",
  "person/abu-al-khayr-al-armuni",
  "person/abu-bakr-ibn-abi-al-qasim-al-ahdal"
 ],
 "license": {
  "prose": "CC BY-SA 4.0",
  "data": "CC0 1.0"
 }
}