Abdullah bin Umar reported,

Whenever the Prophet ﷺ returned from a military expedition, a Hajj, or an Umra and ascended a high ground or hill, he would say "Allahu Akbar" three times, then say, "There is no god but Allah alone, with no partner. To Him belongs the dominion and to Him belongs all praise, and He has power over all things. We return repentant, worshipping, prostrating, and praising our Lord. Allah has fulfilled His promise, given victory to His servant, and defeated the confederates alone."

Tirmidhi 950

Sahih

حدثنا علي بن حجر أخبرنا إسمعيل بن إبراهيم عن أيوب عن نافع

عن ابن عمر قال

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

الترمذي 950صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami Tirmidhi
Book
Hajj
Chapter
What to say when returning from Hajj and Umrah
Numbering
Darussalam 950
Tirmidhi 950