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.
abudawud:1549Muḥammad b. al-Mutawakkil > al-Muʿtamir > Abū al-Muʿtamir Urá > Anas b. Mālik

"O Allah, I seek refuge in You from a prayer that is of no benefit."  

أبو داود:١٥٤٩حَدَّثَنَا مُحَمَّدُ بْنُ الْمُتَوَكِّلِ حَدَّثَنَا الْمُعْتَمِرُ قَالَ قَالَ أَبُو الْمُعْتَمِرِ أُرَى أَنَّ أَنَسَ بْنَ مَالِكٍ

حَدَّثَنَا أَنَّ رَسُولَ اللَّهِ ﷺ كَانَ يَقُولُ اللَّهُمَّ إِنِّي أَعُوذُ بِكَ مِنْ صَلاَةٍ لاَ تَنْفَعُ وَذَكَرَ دُعَاءً آخَرَ