At Tabai Imam Harith bin Qais رحمہ اللہ said:
When you're performing salah and Satan struck you with whims in your heart that you're showing off then elongated and extend your Salah.
[Az Zuhd Imam Ahmad 2092, Kitab Az Zuhd Li Waqih bin Jarrah Rijal, Thiqa]
Imam Saleh al Uthaymin رحمہ اللہ said:
It doesn't comes under showing off, when a person rejoice in his heart that people know about his specific act of worship because this feeling comes after the Ibadah, likewise if a person becomes happy because of his good deed then it is also not considered showing off as Nabi صلی اللہ علیہ وسلم said:
إِذَا سَرَّتْكَ حَسَنَتُكَ وَسَاءَتْكَ سَيِّئَتُكَ فَأَنْتَ مُؤْمِنٌ
If you are happy with your good deeds and saddened by your bad deeds, you are a believer.
[Al Qaul al Mufeed 2/126]
-Translated from Shaikh حافظ محمد طاهر