R. Akiba laughed whilst in Rome and again in Jerusalem amidst the ruins, because he saw in the fulfilment of the prophecied punishment also the assurance of the fulfilment of the good prophecies.
Why Akiva Laughed in the Ruins of Jerusalem
Gaster, Exempla No. 240