ANSWER:

If you mean by traveling that you commute within city limits, this is permissible 

But if you mean traveling from one city to the other for the purpose of such a visit to the cemetery, this is totally prohibited 

QUESTION: What is the reward for me travelling to a cemetery to contemplate and think of the hereafter as Recommended in saheeh Muslim will Allah bless me for doing such a thing?

Funerals |