Sunan Ibn Majah, Book 5, Hadith 1412 (In-Book)

It was narrated from Hudhaifah that the Prophet prayed, and when he recited a Verse which mentioned mercy, he would ask for mercy; when he recited a Verse that mentioned punishment he would pray for deliverance from it; and when he recited a Verse that mentioned the Tanzih of Allah, he would glorify Him.

حَدَّثَنَا عَلِيُّ بْنُ مُحَمَّدٍ، حَدَّثَنَا أَبُو مُعَاوِيَةَ، عَنِ الأَعْمَشِ، عَنْ سَعْدِ بْنِ عُبَيْدَةَ، عَنِ الْمُسْتَوْرِدِ بْنِ الأَحْنَفِ، عَنْ صِلَةَ بْنِ زُفَرَ، عَنْ حُذَيْفَةَ، أَنَّ النَّبِيَّ ـ صلى الله عليه وسلم ـ صَلَّى فَكَانَ إِذَا مَرَّ بِآيَةِ رَحْمَةٍ سَأَلَ وَإِذَا مَرَّ بِآيَةِ عَذَابٍ اسْتَجَارَ وَإِذَا مَرَّ بِآيَةٍ فِيهَا تَنْزِيهٌ لِلَّهِ سَبَّحَ ‏.‏

sunnah.com