Quran and Hadith answers you can check for yourself
General-purpose chatbots invent surah numbers, misattribute narrators and blur similar-sounding narrations. DivinityAI answers only from a locked corpus of the Quran and authenticated Hadith, and tags every claim with the exact verse or narration it came from — so you never have to take its word for it.
“If it’s not in the corpus, don’t say it.”
Every claim carries a source tag
Answers are written in citation-bearing sentences. A Quranic claim is tagged by surah and ayah, a Hadith claim by collection and narration number, and the full source passage — Arabic and translation — is shown beneath the answer so you can verify it without leaving the page.
The Quran emphasises patience (sabr) and pairs it with prayer as a source of help [Q 2:153], and the Prophet described patience as illumination [C Muslim/223].
Q 2:153 (exact match)
يا أيّها الّذين آمنوا استعينوا بالصّبر والصّلاة
“O you who have believed, seek help through patience and prayer.”
Illustrative example of the answer format.
How a question becomes a cited answer
Your question passes through a retrieval pipeline before a single word is generated. Each stage narrows what the model is allowed to see and say.
-
1. Intent routing
The question is classified — verse lookup, hadith question, fiqh guidance, calculation, or out of domain — and routed accordingly.
-
2. Scope guard
Questions the corpus cannot answer are declined with a plain explanation instead of an improvised answer.
-
3. Query rewriting
A hypothetical answer and sub-questions are drafted to widen recall, so a plainly worded question still reaches the right passages.
-
4. Retrieval
Embeddings match the question against the Quran and Hadith collections, one ayah or one narration per chunk.
-
5. Citation verification
Each retrieved passage is matched back to the canonical text by exact, then normalised, then fuzzy comparison — ordinary code, not model judgement.
-
6. Grounded generation
The answer is written from the retrieved passages alone. For fiqh questions an evidence sufficiency check runs first.
-
7. Safety layer
The finished answer is checked back against its sources for unsupported statements, and questions touching sensitive rulings receive a scholar disclaimer before the answer reaches you.
Four layers against hallucination
No single guard is trusted on its own. A fabrication has to pass all four to reach you.
| Layer | What it does |
|---|---|
| Corpus lock | The model only ever sees retrieved passages, never its own training memory of scripture. |
| Source tagging | Every chunk carries a verifiable tag before it is used, so a claim without a tag has nowhere to hide. |
| Citation verifier | Deterministic string matching confirms the cited text really is the cited passage — exact, then normalised, then fuzzy. |
| Post-generation check | The written answer is re-read against its sources and unsupported spans are flagged. |
What it is allowed to draw on
The knowledge base is closed and canonical. The Quran is indexed one ayah at a time from the King Fahd Complex Uthmani text; Hadith are indexed one narration at a time from the six major collections.
- Al-Quran 6,236 ayahs, Arabic with translation
- Sahih al-Bukhari ~7,563 narrations
- Sahih Muslim ~7,190 narrations
- Sunan Abu Dawud ~5,274 narrations
- Jami’ at-Tirmidhi ~3,956 narrations
- Sunan an-Nasa’i & Ibn Majah ~5,762 and ~4,341 narrations
Ask in Arabic, English or Indonesian. Arabic diacritics and spelling variants are normalised before matching, so a question typed without tashkeel still finds the verse.
Frequently asked questions
- Does DivinityAI issue fatwas?
- No. DivinityAI presents what the sources say, not rulings. When a question touches sensitive jurisprudence, the answer carries a disclaimer directing you to a qualified scholar.
- Where do the answers come from?
- Only from the retrieved passages of the Quran and the authenticated Hadith collections in its corpus. The language model never answers from its own training data — if it is not in the corpus, it is not said.
- What do the tags [Q 2:255] and [C Bukhari/52] mean?
- [Q 2:255] points to a Quranic verse by surah and ayah number. [C Bukhari/52] points to a hadith by collection name and narration number. Both can be checked against the source text shown with the answer.
- Which languages can I ask in?
- Arabic, English and Indonesian. Quranic and Hadith passages are shown in Arabic alongside their translation.
- What happens when there is no grounded source?
- It says so. An evidence sufficiency check runs before generation, and questions outside the corpus are declined rather than answered from guesswork.