Mishkat al-Masabih
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.
وَعَن جابرٍ قَالَ: كُنَّا إِذَا صَعِدْنَا كَبَّرْنَا وَإِذَا نَزَلْنَا سبحنا. رَوَاهُ البُخَارِيّ
Reference