All perfect praise be to Allaah, The Lord of the Worlds. I testify that there is none worthy of worship except Allaah, and that Muhammad,
, is His Slave and Messenger.
, narrated that the Prophet,
, said: “Breaking a dead person's bones is like breaking the bones of a living person.” [Abu Daawood and Ibn Maajah]
Ibn Hajar,
, said: “What we can conclude from this Hadeeth is that the sanctity of a believer after his death is still preserved in the same manner as it was when he was alive.”
At-Teebi,
, said: “This is an indication that he is not to be abused when dead just as he is not to be abused when he is alive.”
Therefore, if there is no damage to the graves when passing the water pipe, then it is permissible for you to do so; however, you must ask the people in charge of the graveyard and seek their permission.
Allaah Knows best.