ENOfficial
He reported God's messenger as saying, "By Him in whose hand my soul is, the world will not pass away before a man comes by a grave and rolls on it saying he wishes he were, in the place of the occupant of that grave, not for religious reasons, but because of tribulation." Muslim transmitted it.
Source: sunnah.com
Other translations
Arabic
وَعَنْهُ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: " وَالَّذِي نَفْسِي بِيَدِهِ لَا تَذْهَبُ الدُّنْيَا حَتَّى يَمُرَّ الرَّجُلُ عَلَى الْقَبْرِ فَيَتَمَرَّغُ عَلَيْهِ ويقولُ: يَا لَيْتَني مَكَانَ صَاحِبِ هَذَا الْقَبْرِ وَلَيْسَ بِهِ الدِّينُ إِلَّا الْبلَاء ". رَوَاهُ مُسلم
sunnah.com