Visiting the grave

It is recommended to visit graves, and greet and supplicate their inhabitants: “Peace be upon you dweller of the grave, may Allah forgive us and forgive you, you precede us; and we are behind your heels, insha-Allah.”
The visitor walks up the grave as close as he would if the deceased were alive, and say: “Peace be upon you, abode of a believing folk; Allah willing, we will be joining you.”
It is Sunna to recite as much Quran as is easy, and to supplicate Allah to forgive the deceased.