Sahih Muslim Book 41, Hadith Number 6952.
Chapter : The Last Hour would not come until a person would pass by a grave and wish that he should have been the occupant of that grave because of this calamity.
(The above mentioned) hadith has been narrated on the authority of Abu Huraira through another chain of transmitters.