The people who are saying not to visit graves are people who don’t believe in the life after death. Allah said to stay away from such people. We visit the graves of Prophets and Awliya in order to show our love and respect and to please Allah and to receive His blessing. The Prophet (sas) said, ‘Who visits my grave, it is as if he visited me in life."