[Machine] I heard the Messenger of Allah ﷺ saying, "Indeed, prolonging the prayer and shortening the sermon are signs of a person's understanding (of religion), so prolong the prayer and shorten the sermon." This hadith is authentic according to the conditions of the two sheikhs (referring to Al-Bukhari and Muslim), but they did not mention it in this wording according to the conditions of Al-Bukhari and Muslim.
سَمِعْتُ رَسُولَ اللَّهِ ﷺ يَقُولُ «إِنَّ طُولَ الصَّلَاةِ وَقِصَرَ الْخُطْبَةِ مَئِنَّةٌ مِنْ فِقْهِ الرَّجُلِ فَأَطِيلُوا الصَّلَاةَ وَأَقْصِرُوا الْخُطْبَةَ» صَحِيحٌ عَلَى شَرْطِ الشَّيْخَيْنِ وَلَمْ يُخَرِّجَاهُ بِهَذِهِ السِّيَاقَةِ على شرط البخاري ومسلم