Anas b. Malik (Allah be pleased with him) reported: I and Abu Talha (both) came back along with Allah's Messenger (ﷺ). Safiyyah (the wife of the Holy Prophet) rode behind him on his camel and as we came to the out- skirts of Medina he said: (We are those) who return, who repent, who worship our Lord, who praise (Him), and he went on uttering this until we entered Medina.
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 Alla…
This hadith has been narrated on the authority of Ibn Umar through another chain of transmitters (but with one alteration) that here Allah-o-Akbar is mentioned twice.