(Imam Bukhari said that) Ubaidullah bin Musa narrated to us, he said that Hanzalah bin Abi Sufyan informed us, from Ikrimah bin Khalid, from Hazrat Abdullah bin Umar (may Allāh be pleased with both of them), he said that the Messenger of Allāh ﷺ said:
Islam is built on five things: () testifying that there is none worthy of worship besides Allāh, and that Muhammad is the Messenger of Allāh, () establishing prayer, () paying Zakah, () performing Hajj, () and fasting Ramadan.
حَدَّثَنَا عُبَيْدُ اللهِ بْنُ مُوسَى قَالَ: أَخْبَرَنَا حَنْظَلَةُ بْنُ أَبِي سُفْيَانَ، عَنْ عِكْرِمَةَ بْنِ خَالِدٍ، عَنِ ابْنِ عُمَرَ ﵄ قَالَ: قَالَ رَسُولُ اللهِ ﷺ
بُنِيَ الْإِسْلَامُ عَلَى خَمْسٍ: شَهَادَةِ أَنْ لَا إِلَهَ إِلَّا اللهُ وَأَنَّ مُحَمَّدًا رَسُولُ اللهِ، وَإِقَامِ الصَّلَاةِ، وَإِيتَاءِ الزَّكَاةِ، وَالْحَجِّ، وَصَوْمِ رَمَضَانَ.
Reference: Sahih Al Bukhari 8