Whenever the Prophet ﷺ returned from Hajj, Umra, or a military expedition, and reached high ground, he would say, "There is no god but Allah alone, with no partner. To Him belongs all dominion, to Him belongs all praise, and He has power over everything. Allah has fulfilled His promise, granted victory to His servant, and defeated the confederates alone. We return, Allah willing, repentant, worshipping, praising our Lord."
حدثنا سفيان بن عيينة
كان النبي ﷺ إذا قفل من حج أو عمرة أو غزو فأوفى على فدفد من الأرض قال لا إله إلا الله وحده لا شريك له له الملك وله الحمد وهو على كل شيء قدير صدق الله وعده ونصر عبده وهزم الأحزاب وحده آيبون إن شاء الله تائبون عابدون لربنا حامدون
Its chain of transmission is sahih. It is a repetition of 4496 with similar wording. "Awfa" means he rose up high and looked out.