Sayyidina Ibn Umar (RA) said that whenever the Prophet (SAW) returned from a battle or Hajj or Umrah and came across a height or an uneven place, he called the takbir (Allahu Akbar) three times and said:
There is no God but Allah Who is Alone and Who has no partner. To Him belongs the dominion and for Him is all praise, and He is over all things Powerful. We return repentant, worshipping, returners for our Lord, glorifying and praising our Lord. Allah made His promise true and helped .His slave and He alone routed the confederates.
[Ahmed49603, Bukhari 1797, Muslim 1344]