Imam Husain (a.s.) says whoever enter a graveyard says as follows, Allah will write in his record ‘goodness’ equivalent to the number of creation from the period of Hazrat Adam (a.s.) to the occurrence of Resurrection.
بِسْمِ اللهِ الرَّحْمٰنِ الرَّحِيْمِ. اَللّٰهُمَّ رَبَّ هٰذِهِ الْأَرْوَاحِ الْفَانِيَةِ وَ الْأَجْسَادِ الْبَالِيَةِ وَ الْعِظَامِ النَّخِرَةِ الَّتِيْ خَرَجَتْ مِنَ الدُّنْيَا وَ هِيَ بِكَ مُؤْمِنَةٌ أَدْخِلْ عَلَيْهِمْ رَوْحاً مِنْكَ وَ سَلَاماً مِنِّيْ.
In the name of Allah the Beneficent the Merciful. O Allah the Lord of these souls that have left (this world) and these stale bodies and these rotten bones that have made and exit from this world in the state of having faith in thee, Grant them ease from Thyself and greeting from me.