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.
bayhaqi:3584Muḥammad b. ʿAbdullāh al-Ḥāfiẓ > Abū al-ʿAbbās Muḥammad b. Yaʿqūb > al-Ḥasan > Ibn ʿAlī b. ʿAffān

[Machine] On the authority of the Prophet ﷺ , he said, "Whoever performs the prayer in the best manner in the sight of the people but corrupts it in private, then that is a form of hypocrisy by which he belittles his Lord."  

البيهقي:٣٥٨٤أَخْبَرَنَا مُحَمَّدُ بْنُ عَبْدِ اللهِ الْحَافِظُ ثنا أَبُو الْعَبَّاسِ مُحَمَّدُ بْنُ يَعْقُوبَ ثنا الْحَسَنُ هُوَ ابْنُ عَلِيِّ بْنِ عَفَّانَ ثنا حُسَيْنُ بْنُ عَلِيٍّ يَعْنِي الْجُعْفِيَّ عَنْ زَائِدَةَ عَنْ إِبْرَاهِيمَ يَعْنِي الْهَجَرِيَّ عَنْ أَبِي الْأَحْوَصِ عَنْ عَبْدِ اللهِ

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


See similar narrations below:

Collected by Suyūṭī
suyuti:20265a
Request/Fix translation

  

السيوطي:٢٠٢٦٥a

"مَنْ أَحْسَنَ الصَّلاةَ حَيثُ يَراهُ النَّاسُ ثُمَّ أَسَاءَها حَيثُ يَخْلُو فَتِلْكَ اسْتِهَانَةٌ، اسْتَهَانَ بِهَا رَبَّهُ".  

عبد الرزاق، [ع] أبو يعلى [عق] العقيلى في الضعفاء [هب] البيهقى في شعب الإيمان عن ابن مسعود