Abdullah bin Umar reported,

When the Messenger of Allah ﷺ returned from a military expedition, hajj, or umrah, he would begin by saying "Allahu Akbar" three times, then say, "There is no god but Allah alone, with no partner. To Him belongs the dominion, to Him belongs all praise, and He has power over all things. We return as repentant servants, worshipping and prostrating to our Lord, offering Him praise. Allah has fulfilled His promise, granted victory to His servant, and alone defeated the confederates."

Bukhari 4116

Sahih

حدثنا محمد بن مقاتل أخبرنا عبد الله أخبرنا موسى بن عقبة عن سالم ونافع

عن عبد الله رضي الله عنه

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

البخاري 4116صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Expeditions
Chapter
Battle of Khandaq, which is Ahzab
Numbering
Darussalam 4116
Bukhari 4116