(7) The Book of Etiquette of Traveling
كتاب آداب السفر
(171) Chapter: Glorification of Allah by a Traveler while Ascending and Descending
(171) - باب تكبير المسافر إذا صعد الثنايا وشبهها وتسبيحه إذا هبط الأودية ونحوها والنهي عن المبالغة برفع الصوت بالتكبير ونحوه
Riyad as-Salihin 976 
Ibn 'Umar (May Allah be pleased with them) reported:
Whenever the Prophet (ﷺ) and his army ascended a height, they would proclaim: "Allahu Akbar (Allah is Greatest)," and when they climbed down, they would proclaim: "Subhan Allah (Allah is free from imperfection)."

[Abu Dawud].

وعن ابن عمر رضي الله عنهما قال‏:‏ كان النبي صلى الله عليه وسلم وجيوشه إذا علو الثنايا كبروا، وإذا هبطوا سبحوا‏.‏ ‏(‏‏(‏رواه أبو داود بإسناد صحيح‏.‏
Reference : Riyad as-Salihin 976
In-book reference : Book 7, Hadith 21