Original: In Egypt, he had seen the Pyramids, while at the temple of Ammon, he had been shown the hymn once sent to that shrine by Pindar.
Simplified: In Egypt he had seen the Pyramids, while at the temple of Ammon he had been shown the hymn once sent to that shrine by Pindar.