Methodology
Verification status: DRAFT. Every rule below is pending sign-off by a named scholar. Until a scholar's name and verification date appear on this page, the whole product displays a PREVIEW banner and should not be relied upon. That gate is enforced in the application code, not by policy alone.
What this tool answers
Standard prayer apps answer when to pray. This tool answers the inverse: whether the current moment falls inside one of the classically defined prohibited or disliked times for prayer (awqāt al-nahy) - and it conditions the answer on what you want to pray, because the ruling genuinely differs by that.
Ruling basis
The default is evidence-based: the ruling derived directly from the Qurʾān and Sunnah, issued as one ruling for everyone rather than by school. On the prohibited times this is the position of the ahl al-hadith - anchored to Ibn Taymiyyah, Ibn Bāz, Ibn ʿUthaymīn, and al-Albānī (via IslamQA) - and it happens to coincide with the Shāfiʿī outcome on almost every cell. The core rule is simple: a prayer with a cause is allowed in every window (a due obligatory prayer, a missed prayer being made up, or any voluntary prayer with a reason such as the mosque greeting); only voluntary prayer with no cause is withheld, and the funeral prayer is best delayed a few minutes past the three sun-times unless there is need.
Two schools ship as explicit alternatives for those who follow them, and choosing one also sets the Asr time: Ḥanafī (which additionally withholds making-up and causal prayers in the strict times, and uses the later Asr) and Shāfiʿī. Mālikī and Ḥanbalī matrices are not yet shipped; the evidence-based default serves everyone in the meantime.
The six states
| Window | Start | End | Class |
|---|---|---|---|
| Clear | everything not covered below | permitted baseline | |
| After Fajr | Fajr time entry ¹ | sunrise | extended (nafl-restricted) |
| Sunrise | sunrise | sunrise + Psunrise (default 20 min) | strict |
| Zenith (istiwāʾ) | solar noon − Pzenith (default 10 min) | Dhuhr time (zawāl passed) ² | strict |
| After Asr | Asr time entry ¹ | start of isfirār | extended (nafl-restricted) |
| Sunset (isfirār) | Maghrib − Pisfirar (default 20 min) ³ | Maghrib | strict |
¹ The scholarly basis is "after performing Fajr/Asr". The app cannot know whether you have prayed, so it anchors conservatively to the prayer-time entry. This convention is itself a scholar-reviewed parameter.
² The zenith window is computed from astronomical solar noon, never from a mosque adhan or timetable - mosques delay adhans. It ends when zawāl has passed (the calculated Dhuhr time).
³ Different Ḥanafī timetables use different isfirār conventions (20-40 minutes); the value is data, not code, and will be set by the reviewing scholar.
Rule matrix - Evidence-based / default (draft)
| Obligatory due | Missed (qaḍāʾ) | Funeral | With a cause | Voluntary (no cause) | |
|---|---|---|---|---|---|
| After Fajr | PERMITTED | PERMITTED | PERMITTED | PERMITTED | PROHIBITED |
| Sunrise | see ⁵ | PERMITTED | DISLIKED ⁺ | PERMITTED | PROHIBITED |
| Zenith | PERMITTED ⁷ | PERMITTED | DISLIKED ⁺ | PERMITTED | PROHIBITED |
| After Asr | PERMITTED | PERMITTED | PERMITTED | PERMITTED | PROHIBITED |
| Sunset | YES, with warning ⁸ | PERMITTED | DISLIKED ⁺ | PERMITTED | PROHIBITED |
⁺ The funeral prayer in the three sun-times (sunrise, zenith, sunset) is best delayed a few minutes; pray it there only if there is need (al-Albānī, Aḥkām al-Janāʾiz). The Uqbah ibn ʿĀmir hadith names burial in exactly these three moments. Everything else with a cause - the two rakʿahs of Fajr made up after it, a missed obligatory prayer, the mosque greeting, the prayer after wuḍūʾ, the ṭawāf prayer - is permitted throughout, and only causeless voluntary prayer is withheld.
Rule matrix - Ḥanafī (draft)
| Today's fard | Missed (qaḍāʾ) | Funeral | Mosque greeting (causal nafl) | Voluntary (pure nafl) | |
|---|---|---|---|---|---|
| After Fajr | PERMITTED | PERMITTED | PERMITTED | PROHIBITED ⁴ | PROHIBITED ⁴ |
| Sunrise | see ⁵ | PROHIBITED (invalid) | DISLIKED ⁶ | PROHIBITED | PROHIBITED |
| Zenith | PERMITTED ⁷ | PROHIBITED (invalid) | DISLIKED ⁶ | PROHIBITED | PROHIBITED |
| After Asr | PERMITTED | PERMITTED | PERMITTED | PROHIBITED ⁴ | PROHIBITED ⁴ |
| Sunset | YES, with warning ⁸ | PROHIBITED (invalid) | DISLIKED ⁶ | PROHIBITED | PROHIBITED |
⁴ Ḥanafī fiqh classes this makrūh taḥrīmī (near-prohibited); the app renders it as "NO" with the makrūh-taḥrīmī note. The two rakʿahs of the Fajr sunnah are an explicit exception before Fajr is prayed.
⁵ Fajr's time ends at sunrise. A user in the sunrise window who has not prayed Fajr is told to pray it as qaḍāʾ after the sun has fully risen - never shown a bare "NO".
⁶ A funeral prayer in the strict windows is disliked if the funeral was ready beforehand, permitted if it became ready within the window.
⁷ No obligatory prayer's window naturally falls at the zenith; the cell is defined defensively as permitted.
⁸ That day's unperformed Asr must still be prayed before Maghrib: the delay was sinful, the prayer is valid and obligatory.
Rule matrix - Shāfiʿī (draft)
| Today's fard | Missed (qaḍāʾ) | Funeral | Mosque greeting (causal nafl) | Voluntary (pure nafl) | |
|---|---|---|---|---|---|
| All five windows | PERMITTED | PERMITTED | PERMITTED | PERMITTED | PROHIBITED (invalid) |
In the Shāfiʿī school, prayers with a cause (qaḍāʾ, janāzah, taḥiyyat al-masjid, the sunnah of wuḍūʾ) are valid in the prohibited times; only pure voluntary prayer without a cause is barred. Two exceptions: Friday at the zenith carries no prohibition at all, and within the Makkan Ḥaram no time is prohibited. The Makkah setting is user-controlled and never assumed from GPS.
Mālikī and Ḥanbalī matrices are planned; the data schema already carries slots for them.
Astronomy
- Prayer times are computed client-side with Adhan.js, a high-precision, widely used astronomical library.
- Calculation methods offered: ACJU (Sri Lanka), Muslim World League, ISNA, Egyptian, Umm al-Qura, University of Karachi, Dubai, Kuwait, Qatar, Singapore, Moonsighting Committee, Turkey (Diyanet). The default is chosen by your country and can be changed in settings.
- Your madhhab is also defaulted by country (Shāfiʿī in Sri Lanka, the Maldives and South-East Asia; Ḥanafī in Turkey, South and Central Asia). It sets the Asr shadow factor as well as the rule matrix, so the default matters: choosing the wrong school moves Asr by about an hour. Your explicit choice always overrides the default.
- Agreement with national authorities. The prohibited windows depend on sunrise, solar zenith and sunset - astronomical events that calculation conventions do not change. Measured against the All Ceylon Jamiyyathul Ulama's official Colombo timetable, our sunrise matches exactly, our zenith to within one minute, and our sunset to within two. Only Fajr and Isha are convention-dependent (twilight angles); for Sri Lanka we follow the ACJU convention (Fajr 20°, Isha 18°), which reproduces their published times to within one minute. We compute these times ourselves and are not endorsed by any authority; where your local authority publishes a timetable, it is the reference.
- Your madhhab sets the Asr shadow factor as well as the rule matrix: Ḥanafī uses the double-shadow convention, Shāfiʿī the single shadow. Asr time itself moves with this setting.
- Solar noon for the zenith window is calculated from the solar transit (NOAA equation of time), never taken from a timetable.
- All times follow your device clock.
High latitudes
Above roughly 55° latitude in summer the windows distort, and above the polar circles some events do not occur. When the astronomy cannot resolve an event for your date and location, the app says so honestly and shows no verdict - it never invents a window. Residents of such latitudes should follow local scholarly guidance.
Boundary behaviour
Within ±60 seconds of any boundary the app shows "starting now / ending now" instead of flickering between verdicts. The verdict itself changes exactly at the computed boundary.
Hard safety rule
A wrong "NO" that stops someone from praying an obligatory prayer is the worst failure this product can have. The engine therefore enforces, as an invariant: when you select "Today's fard" while that prayer's time is running, the answer is never a bare prohibition - it is either permitted, permitted-with-warning (the sunset Asr case), or the Fajr-expired guidance to pray qaḍāʾ after sunrise.
Verification & versioning
Rule sets are versioned data files, not code: hanafi-0.1.0-draft and shafii-0.1.0-draft. Each rule cell and each boundary parameter carries its basis and a verified_by/verified_at field, currently empty. When a named scholar signs the matrix, this page will carry their name, the verification date, and the re-review cadence (proposed: annual, or on any parameter change), and only then does the PREVIEW banner come down.
Operated by Asymm Systems (Pvt) Ltd. Scholars interested in reviewing the matrix: salam@canipraynow.com.