Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
bayhaqi:7652al-Sayyid Abū al-Ḥasan Muḥammad b. al-Ḥusayn al-ʿAlawī > Abū Ḥāmid b. al-Sharqī > Abū al-Azhar > Wahbb. Jarīr from my father > Muḥammad b. Isḥāq > Ismāʿīl b. Umayyah > Bujayr b. Abū Bujayr > ʿAbdullāh b. ʿAmr b. al-ʿĀṣ

When we went out along with the Messenger of Allah ﷺ to at-Ta'if we passed a grave. I heard the Messenger of Allah ﷺ say: This is the grave of AbuRighal. He was in this sacred mosque (sanctuary) protecting himself (from punishment). When he came out, he suffered the same punishment which his people suffered at this place, and he was buried in it. The sign of it is that a golden bough was buried with him. If you dig it out, you will find it with him. The people hastened to it and took out the bough. (Using translation from Abū Dāʾūd 3088)   

البيهقي:٧٦٥٢أَخْبَرَنَا السَّيِّدُ أَبُو الْحَسَنِ مُحَمَّدُ بْنُ الْحُسَيْنِ الْعَلَوِيُّ أنبأ أَبُو حَامِدِ بْنُ الشَّرْقِيِّ ثنا أَبُو الْأَزْهَرِ ثنا وَهْبُ بْنُ جَرِيرٍ ثنا أَبِي قَالَ سَمِعْتُ مُحَمَّدَ بْنَ إِسْحَاقَ يُحَدِّثُ عَنْ إِسْمَاعِيلَ بْنِ أُمَيَّةَ عَنْ بُجَيْرِ بْنِ أَبِي بُجَيْرٍ قَالَ سَمِعْتُ عَبْدَ اللهِ بْنَ عَمْرِو بْنِ الْعَاصِ قَالَ

سَمِعْتُ رَسُولَ اللهِ ﷺ يَقُولُ حِينَ خَرَجْنَا مَعَهُ إِلَى الطَّائِفِ فَمَرَرْنَا بِقَبْرٍ فَقَالَ رَسُولُ اللهِ ﷺ هَذَا قَبْرُ أَبِي فُلَانٍ وَكَانَ بِهَذَا الْحَرَمِ يَدْفَعُ بِهِ عَنْهُ فَلَمَّا خَرَجَ أَصَابَتْهُ النِّقْمَةُ الَّتِي أَصَابَتْ قَوْمَهُ بِهَذَا الْمَكَانِ فَدُفِنَ فِيهِ وَآيَةُ ذَلِكَ أَنَّهُ دُفِنَ مَعَهُ غُصْنٌ مِنْ ذَهَبٍ إِنْ أَنْتُمْ نَبَشْتُمْ عَنْهُ وَجَدْتُمُوهُ مَعَهُ فَابْتَدَرَهُ النَّاسُ فَاسْتَخْرَجُوا مِنْهُ الْغُصْنَ  

رَوَاهُ أَبُو دَاوُدَ فِي السُّنَنِ عَنْ يَحْيَى بْنِ مَعِينٍ عَنْ وَهْبِ بْنِ جَرِيرٍ وَقَالَ قَبْرُ أَبِي رِغَالٍ

See similar narrations below:

Collected by Abū Dāwūd
abudawud:3088Yaḥyá b. Maʿīn > Wahbb. Jarīr from my father > Muḥammad b. Isḥāq > Ismāʿīl b. Umayyah > Bujayr b. Abū Bujayr > ʿAbdullāh b. ʿAmr

When we went out along with the Messenger of Allah ﷺ to at-Ta'if we passed a grave. I heard the Messenger of Allah ﷺ say: This is the grave of AbuRighal. He was in this sacred mosque (sanctuary) protecting himself (from punishment). When he came out, he suffered the same punishment which his people suffered at this place, and he was buried in it. The sign of it is that a golden bough was buried with him. If you dig it out, you will find it with him. The people hastened to it and took out the bough.  

أبو داود:٣٠٨٨حَدَّثَنَا يَحْيَى بْنُ مَعِينٍ حَدَّثَنَا وَهْبُ بْنُ جَرِيرٍ حَدَّثَنَا أَبِي سَمِعْتُ مُحَمَّدَ بْنَ إِسْحَاقَ يُحَدِّثُ عَنْ إِسْمَاعِيلَ بْنِ أُمَيَّةَ عَنْ بُجَيْرِ بْنِ أَبِي بُجَيْرٍ قَالَ سَمِعْتُ عَبْدَ اللَّهِ بْنَ عَمْرٍو يَقُولُ

سَمِعْتُ رَسُولَ اللَّهِ ﷺ يَقُولُ حِينَ خَرَجْنَا مَعَهُ إِلَى الطَّائِفِ فَمَرَرْنَا بِقَبْرٍ فَقَالَ رَسُولُ اللَّهِ ﷺ هَذَا قَبْرُ أَبِي رِغَالٍ وَكَانَ بِهَذَا الْحَرَمِ يَدْفَعُ عَنْهُ فَلَمَّا خَرَجَ أَصَابَتْهُ النِّقْمَةُ الَّتِي أَصَابَتْ قَوْمَهُ بِهَذَا الْمَكَانِ فَدُفِنَ فِيهِ وَآيَةُ ذَلِكَ أَنَّهُ دُفِنَ مَعَهُ غُصْنٌ مِنْ ذَهَبٍ إِنْ أَنْتُمْ نَبَشْتُمْ عَنْهُ أَصَبْتُمُوهُ مَعَهُ فَابْتَدَرَهُ النَّاسُ فَاسْتَخْرَجُوا الْغُصْنَ