Hadithcore
Mishkat al-Masabih, 2453

Jabir said that when they went up to high ground they said, “God is most great,” and when they descended they said, “Glory be to God.” Bukhari transmitted it.

وَعَن جابرٍ قَالَ: كُنَّا إِذَا صَعِدْنَا كَبَّرْنَا وَإِذَا نَزَلْنَا سبحنا. رَوَاهُ البُخَارِيّ

References1 variant
In-Book Reference
Book 9, Hadith 222