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.
tabarani:9040ʿAbdullāh b. Muḥammad b. Saʿīd b. Abū Maryam > al-Firyābī > Sufyān > Abū al-Aḥwaṣ > Ibn Masʿūd

[Machine] "If the ant were to be punished in its hole for the sins of the children of Adam." Then he recited, "And if Allah were to punish the people for what they have earned, He would not leave upon the earth any creature..."  

الطبراني:٩٠٤٠حَدَّثَنَا عَبْدُ اللهِ بْنُ مُحَمَّدِ بْنِ سَعِيدِ بْنِ أَبِي مَرْيَمَ ثنا الْفِرْيَابِيُّ عَنْ سُفْيَانَ عَنْ أَبِي الْأَحْوَصِ عَنِ ابْنِ مَسْعُودٍ قَالَ

«إِنْ كَانَ الْجُعْلُ لَيُعَذَّبُ فِي جُحْرِهِ بِذُنُوبِ بَنِي آدَمِ» ثُمَّ قَرَأَ {وَلَوْ يُؤَاخِذُ اللهُ النَّاسَ بِمَا كَسَبُوا مَا تَرَكَ عَلَى ظَهْرِهَا مِنْ دَابَّةٍ}