Reference : Hisn al-Muslim 217

يُكَبِّرُ عَلَى كُلِّ شَرَفٍ ثَلاَثَ تَكْبِيرَاتٍ ثُمَّ يَقُولُ: 
لاَ إِلَهَ إِلاَّ اللَّهُ 
وَحْدَهُ لاَ شَرِيكَ لَهُ، 
لَهُ الْمُلْكُ، وَلَهُ الْحَمْدُ، 
وَهُوَ عَلَى كُلِّ شَيْءٍ قَدِيرٌ، 
آيِبُونَ، تَائِبُونَ، عَابِدُونَ، 
لِرَبِّنا حَامِدُونَ، 
صَدَقَ اللَّهُ وَعْدَهُ، 
وَنَصَرَ عَبْدَهُ، 
وَهَزَمَ الْأَحْزابَ وَحْدَهُ
From every elevated point say 
Allāhu Akbar (three times), 
and then recite:

Lā ilāha illallāh 
waḥdahu lā sharīka lah, 
lahu ‘l-mulku, walahu ‘l-ḥamd, 
wa Huwa `alā kulli shay'in Qadīr, 
ā'ibūna, tā'ibūna,`ābidūn, 
li Rabbinā ḥāmidūn, 
sadaqallāhu wa`dah, 
wa nasara `abdah,
wa hazama ‘l-'aḥzāba waḥdah.


From every elevated point say Allāhu Akbar (Allah is the Most Great) three times and then recite:

None has the right to be worshipped but Allah alone, 
Who has no partner. 
His is the dominion and His is the praise, and He is Able to do all things. 
We return repentant to our Lord, worshipping our Lord, 
and praising our Lord. 
He fulfilled His Promise, 
He aided His slave, 
and He alone defeated the Confederates.

Reference:
Bukhari 7/163, Muslim 2/980. The Prophet (ﷺ) used to say this when 
returning from a campaign or from Hajj.

Chapter: While returning from travel