Abdullah bin Umar reported,

The Prophet ﷺ, whenever he returned from a journey, would say "Allahu Akbar" three times and then say, "We return, Allah willing, repentant, worshipping, praising our Lord, and prostrating to Him. Allah has fulfilled His promise, granted victory to His servant, and alone defeated the confederates."

Bukhari 3084

Sahih

حدثنا موسى بن إسماعيل حدثنا جويرية عن نافع

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

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

البخاري 3084صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Jihad and expeditions
Chapter
What to say when returning from battle
Numbering
Darussalam 3084
Bukhari 3084