Tawsa reported,

A man said to Abdullah bin Umar, "Why do you not go out on military expeditions?"He replied, "I heard the Messenger of Allah ﷺ say, 'Islam is built upon five: the testimony that there is no god but Allah, the establishment of prayer, the giving of zakat, fasting in Ramadan, and pilgrimage to the House.'"

Muslim 114

Sahih

و حدثني ابن نمير حدثنا أبي حدثنا حنظلة قال سمعت عكرمة بن خالد

يحدث طاوسا

أن رجلا قال لعبد الله بن عمر ألا تغزو فقال إني سمعت رسول الله ﷺ يقول إن الإسلام بني على خمس شهادة أن لا إله إلا الله وإقام الصلاة وإيتاء الزكاة وصيام رمضان وحج البيت

مسلم 114صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Faith
Chapter
Explanation of the pillars of Islam and its great foundations
Numbering
Darussalam 114
Muslim 114