Hadith 20

Riyad as-Salihin

Book 7: The Book of Etiquette of Traveling

Chapter 171

Glorification of Allah by a Traveler while Ascending and Descending

باب تكبير المسافر إذا صعد الثنايا وشبهها وتسبيحه إذا هبط الأودية ونحوها والنهي عن المبالغة برفع الصوت بالتكبير ونحوه

Riyad as-Salihin 975
عن جابر رضي الله عنه قال‏:‏ كنا إذا صعدنا كبرنا، وإذا نزلنا سبحنا‏.‏ ‏(‏‏(‏رواه البخاري‏)‏‏)‏‏.‏
Jabir (May Allah be pleased with him) reported:

When we ascended (a height) we would proclaim: "Allahu Akbar (Allah is Greatest)," and when we descended (from the height) we would proclaim: "Subhan Allah (Allah is free from imperfection)."'[Al-Bukhari].