It is said that Malik ibn Dīnār raĥmatullāhi álayh passed by a graveyard and he said:

ataytu’l qubūra fa nādaytuhā
fa ayna’l muážžamu wa’l muĥtaqar?
wa ayna’l mudhillu bi sulţānihi
wa ayna’l muzakkī idhā ma’ftakhar

I come to the graves and call out
Where are the majestic and where are the humble?
And where are those who triumphed by their power
And where are those who prided in their chastity?

—–
It is said that he heard a voice that said:

tafānū jamīán fa mā mukhbirun
wa mātū jamīán wa māta’l khabar
tarūĥu wa taghdū banātu’th tharā
fa tamĥū maĥāsina tilka’s suwar
fa yā sāyilī án unāsi’n mađū
amā laka fīmā tarā mútabar?

All are destroyed; there is none to reply
All have died, and so have their stories
Days and nights roll by and the earth,
Devours and erases those beautiful images,
O who inquires of those that have passed
Have you learnt any lesson from what you see?

[The 2nd and 3rd lines can be simple in meaning as ‘They are buried in the earth and as days pass, their faces are disfigured’ or can be very deep and profound:‘The images of the luxury, their triumphs, their extravagant lives are erased as days pass on this earth.’]

Mukāshafatu’l Qulūb, Chapter 27: On Death, Attributed to Imām Ghazāli


Note: There anachronistic references to writers and books in this work. Therefore, there are reservations on this being a work of Imam Ghazali.  Imam Subki did not include this in his in his biographical note on al-Ghazali in his 'Tabaqat.' Dr.Badawi in his 'Muallafat', lists this under pseudo-works, but it is a useful book nevertheless. There are few aberrations and some passages that are indigestible, but a good book overall. Allah ta'ala knows best.  See this article for some more information.