Ibn al-Mubārak said: ʿĀṣim al-Aḥwal narrated to us, from ʿIkrimah, from Ibn ʿAbbās: “The Messenger of Allah ﷺ stayed in Mecca for 19 days, performing two rakʿahs.” Al-Bukhārī recorded it.
Ḥafṣ ibn Ghiyāth transmitted—from ʿĀṣim al-Aḥwal—that it was 17 days; the chain is sound.
Ibn ʿUlayyah said: ʿAlī ibn Zayd related to us, from Abū Naḍrah, from ʿImrān ibn Ḥuṣayn: “I campaigned with the Prophet ﷺ, and he remained in Mecca for 18 nights, never praying more than two rakʿahs. He would proclaim, ‘People of the town, pray four; for we are travellers.’” Abū Dāwūd recorded it, but ʿAlī is weak.
Ibn Isḥāq reported—through al-Zuhrī, from ʿUbayd Allāh ibn ʿAbd Allāh—that in the Year of the Conquest the Messenger of Allah ﷺ stayed 15 days while shortening the prayer.
Ibn Isḥāq also narrated the same from several others.
Al-Bayhaqī remarked, “The most reliable version is the report of Ibn al-Mubārak, which al-Bukhārī adopted.”
Al-Wāqidī said: “In Ramadan Khālid ibn al-Walīd was dispatched to al-ʿUzzā, and he demolished it. ʿAmr ibn al-ʿĀṣ was sent in Ramadan to Suwāʿ—an idol of the Hudhayl tribe—and he razed it. I asked the custodian, ‘What do you say now?’ He replied, ‘I have submitted to Allah.’
“Also in Ramadan, Saʿd ibn Zayd al-Ashhalī was sent to Manāt, which stood at al-Mashallal and was venerated by the Aws, the Khazraj, and Ghassān. When the Day of the Conquest came, the Messenger of Allah…"