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.
tirmidhi:3250Abū Ḥafṣ ʿAmr b. ʿAlī al-Falāas > Abū Qutaybah Salm b. Qutaybah > Suhayl b. Abū Ḥazm al-Quṭaʿī > Thābit al-Bunānī > Anas b. Mālik

that the Messenger of Allah ﷺ recited: Verily those who say: "Our Lord is Allah, and then they stand firm (41:30)." - He said: "People have said it, then most of them disbelieved, so whoever dies upon it, then he is among those who stood firm."  

الترمذي:٣٢٥٠حَدَّثَنَا أَبُو حَفْصٍ عَمْرُو بْنُ عَلِيٍّ الْفَلاَّسُ حَدَّثَنَا أَبُو قُتَيْبَةَ سَلْمُ بْنُ قُتَيْبَةَ حَدَّثَنَا سُهَيْلُ بْنُ أَبِي حَزْمٍ الْقُطَعِيُّ حَدَّثَنَا ثَابِتٌ الْبُنَانِيُّ عَنْ أَنَسِ بْنِ مَالِكٍ

أَنَّ رَسُولَ اللَّهِ ﷺ قَرَأَ (إِنَّ الَّذِينَ قَالُوا رَبُّنَا اللَّهُ ثُمَّ اسْتَقَامُوا ) قَالَ قَدْ قَالَ النَّاسُ ثُمَّ كَفَرَ أَكْثَرُهُمْ فَمَنْ مَاتَ عَلَيْهَا فَهُوَ مِمَّنِ اسْتَقَامَ  

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

See similar narrations below:

Collected by Nasāʾī's Kubrá, Suyūṭī

قَوْلُهُ تَعَالَى: {إِنَّ الَّذِينَ قَالُوا رَبُّنَا اللهُ ثُمَّ اسْتَقَامُوا} [فصلت: 30]

nasai-kubra:11406ʿAmr b. ʿAlī > Abū Qutaybah > Suhayl b. Abū Ḥazm > Thābit > Anas

that the Messenger of Allah ﷺ recited: Verily those who say: "Our Lord is Allah, and then they stand firm (41:30)." - He said: "People have said it, then most of them disbelieved, so whoever dies upon it, then he is among those who stood firm." (Using translation from Tirmidhī 3250)   

الكبرى للنسائي:١١٤٠٦أَخْبَرَنَا عَمْرُو بْنُ عَلِيٍّ قَالَ حَدَّثَنَا أَبُو قُتَيْبَةَ قَالَ حَدَّثَنَا سُهَيْلُ بْنُ أَبِي حَزْمٍ عَنْ ثَابِتٍ عَنْ أَنَسٍ

أَنَّ رَسُولَ اللهِ ﷺ قَرَأَ {إِنَّ الَّذِينَ قَالُوا رَبُّنَا اللهُ ثُمَّ اسْتَقَامُوا} [فصلت 30] قَالَ «قَدْ قَالَهَا النَّاسُ ثُمَّ كَفَرُوا فَمَنْ مَاتَ عَلَيْهَا فَهُوَ مِنْ أَهْلِ الِاسْتِقَامَةِ»