قَالَ جَابِرٌ رضي الله عنه: ((كُنَّا إِذَا صَعَدْنَا كَبَّرْنَا، وَإِذَا نَزَلْنَا سَبَّحْنَا)).
Jabir said: Whenever we went up a hill we would say Allaahu 'Akber (Allah is the Most Great) and when we descended we would say Subhaanallaah (Glory is to Allah)
Al-Bukhari, cf. Al-Asqalani, Fathul-Bari 6/135.