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:8432ʿAbdān b. Aḥmad > Aḥmad b. Muḥammad b. Yaḥyá b. Saʿīd al-Qaṭṭān > Yaḥyá b. Ādam > Quṭbah b. ʿAbd al-ʿAzīz > al-Aʿmash > Abū Isḥāq > Masrūq > ʿAbdullāh

[Machine] "And there is none worthy of worship except Him. There is no surah (chapter) in the Book of Allah except that I know where it was revealed and there is no verse except that I know what it was revealed about."  

الطبراني:٨٤٣٢حَدَّثَنَا عَبْدَانُ بْنُ أَحْمَدَ ثنا أَحْمَدُ بْنُ مُحَمَّدِ بْنِ يَحْيَى بْنِ سَعِيدٍ الْقَطَّانُ ثنا يَحْيَى بْنُ آدَمَ ثنا قُطْبَةُ بْنُ عَبْدِ الْعَزِيزِ عَنِ الْأَعْمَشِ عَنْ أَبِي إِسْحَاقَ عَنْ مَسْرُوقٍ عَنْ عَبْدِ اللهِ قَالَ

«وَالَّذِي لَا إِلَهَ إِلَّا هُوَ مَا فِي كِتَابِ اللهِ سُورَةٌ إِلَّا وَأَنَا أَعْلَمُ أَيْنَ نَزَلَتْ وَلَا فِيهِ آيَةٌ إِلَّا وَأَنَا أَعْلَمُ فِيمَا أُنْزِلَتْ»  


See similar narrations below:

Collected by Muslim
muslim:2463Abū Kurayb > Yaḥyá b. Ādam > Quṭbah > al-Aʿmash > Muslim > Masrūq > ʿAbdullāh

By Him besides Whom there is no god, there is no chapter in the Book of Allah about which I do not know as to where it was revealed and there is no verse about which I do not know in what context it was revealed, and if I were to know of one having a better understanding of the Book of Allah than I (and I could reach him) on the back of the mule, I would have definitely gone to him on camel's back.  

مسلم:٢٤٦٣حَدَّثَنَا أَبُو كُرَيْبٍ حَدَّثَنَا يَحْيَى بْنُ آدَمَ حَدَّثَنَا قُطْبَةُ عَنِ الأَعْمَشِ عَنْ مُسْلِمٍ عَنْ مَسْرُوقٍ عَنْ عَبْدِ اللَّهِ قَالَ

وَالَّذِي لاَ إِلَهَ غَيْرُهُ مَا مِنْ كِتَابِ اللَّهِ سُورَةٌ إِلاَّ أَنَا أَعْلَمُ حَيْثُ نَزَلَتْ وَمَا مِنْ آيَةٍ إِلاَّ أَنَا أَعْلَمُ فِيمَا أُنْزِلَتْ وَلَوْ أَعْلَمُ أَحَدًا هُوَ أَعْلَمُ بِكِتَابِ اللَّهِ مِنِّي تَبْلُغُهُ الإِبِلُ لَرَكِبْتُ إِلَيْهِ