بِسْمِ ٱللَّهِ ٱلرَّحْمَـٰنِ ٱلرَّحِيمِ ﴿1﴾ ٱلْحَمْدُ لِلَّهِ رَبِّ ٱلْعَـٰلَمِينَ ﴿2﴾
1 In the name of Allah, the Beneficent, the Merciful. 2 Praise be to Allah, Lord of the Worlds,
Al-Fatihah 1:1–2 on Quran.com · Pickthall’s translation
Open a mushaf printed in the reading of Hafs from ’Asim, the one most of the world uses, and al-Fatihah has seven verses with Bismillah ir-Rahman ir-Rahim as the first. Open one printed in the reading of Warsh from Nafi’, common in North and West Africa, and al-Fatihah still has seven verses, but the Basmalah has no number, and the last verse is split into two. So which is it?
Start with what everyone agrees on. Al-Fatihah has seven verses: the commentators explain the “seven oft-repeated” of al-Hijr 15:87 as al-Fatihah. And the Basmalah is itself Quran. Anas reported that the Prophet ﷺ looked up smiling and said a surah had just been revealed to him, then recited Bismillah ir-Rahman ir-Rahim followed by al-Kawthar. It stands at the head of every surah except at-Tawbah.
So nobody who numbers it adds anything to the Quran, and nobody who leaves it unnumbered takes anything away. The words recited are exactly the same. The only question is whether it carries a verse number in this one surah.
Verse numbers were not revealed as numbers. The Companions learned where each verse ends from the way the Prophet ﷺ paused when he recited. That is why the counts differ in places, and why al-Baqarah is 286 verses in one count and 285 in another with not one word different. We wrote about this in why some surahs have different verse counts.
Those who begin al-Fatihah at al-hamdu lillahi rabbil-’alamin point to a hadith qudsi: Allah says He has divided the prayer between Himself and His servant, and when the servant says al-hamdu lillahi rabbil-’alamin, Allah says, My servant has praised Me. The division starts there, not at the Basmalah. Those who count it point to reports that the Prophet ﷺ recited the Basmalah before al-Fatihah, sometimes aloud. Both views are held by great scholars, and the majority hold the first.
For your own prayer the practical point is simple, and every view meets on it: say the Basmalah before you begin al-Fatihah. Then whichever view is right, you have recited the whole surah. If you are still learning the prayer, the step-by-step guide to praying walks you through it.