كتاب الحج
15
The Book of Pilgrimage
(76)
Chapter: What should be said when returning from Hajj and other journeys
(76)
باب مَا يَقُولُ إِذَا قَفَلَ مِنْ سَفَرٍ الْحَجِّ وَغَيْرِهِ ‏‏

Anas b. Malik (Allah be pleased with him) reported:

I and Abu Talha (both) came back along with Allah's Apostle (ﷺ). 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.
وَحَدَّثَنِي زُهَيْرُ بْنُ حَرْبٍ، حَدَّثَنَا إِسْمَاعِيلُ ابْنُ عُلَيَّةَ، عَنْ يَحْيَى بْنِ أَبِي إِسْحَاقَ، قَالَ قَالَ أَنَسُ بْنُ مَالِكٍ أَقْبَلْنَا مَعَ النَّبِيِّ صلى الله عليه وسلم أَنَا وَأَبُو طَلْحَةَ ‏.‏ وَصَفِيَّةُ رَدِيفَتُهُ عَلَى نَاقَتِهِ حَتَّى إِذَا كُنَّا بِظَهْرِ الْمَدِينَةِ قَالَ ‏ "‏ آيِبُونَ تَائِبُونَ عَابِدُونَ لِرَبِّنَا حَامِدُونَ ‏"‏ ‏.‏ فَلَمْ يَزَلْ يَقُولُ ذَلِكَ حَتَّى قَدِمْنَا الْمَدِينَةَ ‏.‏
Reference : Sahih Muslim 1345 a
In-book reference : Book 15, Hadith 484
USC-MSA web (English) reference : Book 7, Hadith 3118
  (deprecated numbering scheme)