Sahih al-Bukhari, Book 56, Hadith 202 (Bukhari 2871)

Narrated Jabir bin `Abdullah:

Whenever we went up a place we would say, "Allahu--Akbar (i.e. Allah is Greater)", and whenever we went down a place we would say, "Subhan Allah."