(76) باب مَا يَقُولُ إِذَا قَفَلَ مِنْ سَفَرٍ الْحَجِّ وَغَيْرِهِ
Abdullah b. 'Umar reported that whenever Allah's Messenger (ﷺ) came back from the battle or from expeditions or from Hajj or Umra and as he reached the top of the hillock or upon the elevated hard ground, he uttered Allah-o- Akbar thrice, and then said:
There is no god but Allah. He is One, there is no partner with Him, His is the sovereignty and His is the praise and He is Potent over everything. (We are) returning, repenting, worshipping, prostrating before our Lord, and we praise Him Allah fulfilled His promise and helped His servant, and routed the confederates alone.
Reference: Sahih Muslim 1344 a
In-book reference: Book 15, Hadith 482
USC-MSA web (English) reference(deprecated numbering scheme): Book 7, Hadith 3116