Sayyiduna Abu Hurayrah (may Allah be pleased with him) narrates: the Prophet (peace and blessings be upon him) passed by a grave and he (peace and blessings be upon him) said: "Who is the occupant of this grave?" The people said: "So-and-so." the Prophet (peace and blessings be upon him) said: "Two rak'ahs would be more beloved to this person than the whole of your world."
Al-Tabarani recorded it in al-Mu'jam al-Awsat, and its narrators are thiqat (trustworthy).