Hakim al Umma Mawlana Ashraf Ali Thanawi (Allah have mercy on him) said,
‘Making elevated graves, constructing domes over them, observing death anniversaries (urs) with pomp and festivities, using excessive illumination (in these places and gatherings) as is the custom these days, and prostrating to dead or alive are all impermissible actions.
However, to visit (the graves of awliya), to forward the reward of good deeds to them and derive benefit (fayuz) from them (or their graves) if one is sahib e nisbet are all fine things. ‘
Taleemud Deen, page 129