Sahih Muslim Book 41, Hadith Number 6966.

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.

Abu Sa’id Khudri reported: One who Is better than I informed me, that Allah’s Messenger (may peace be upon him) said to ‘Ammar as he was digging the ditch (on the occasion of the Battle of the Ditch) wiping over his head: O son of Summayya you will be involved in trouble and a group of the rebels would kill you.