[Machine] I entered the mosque and the Messenger of Allah ﷺ was sitting amongst the people. So, I sat down. Then the Messenger of Allah ﷺ said, "What prevented you from praying two units (rak'ahs) before sitting down?" I replied, "I saw you sitting, and the people were also sitting." He said, "When one of you enters the mosque, they should not sit down until they have prayed two units (rak'ahs)."
دَخَلْتُ الْمَسْجِدَ وَرَسُولُ اللهِ ﷺ جَالِسٌ بَيْنَ ظَهْرَيِ النَّاسِ فَجَلَسْتُ فَقَالَ رَسُولُ اللهِ ﷺ مَا مَنَعَكَ أَنْتَرْكَعَ رَكْعَتَيْنِ قَبْلَ أَنْ تَجْلِسَ؟ قَالَ قُلْتُ إِنِّي رَأَيْتُكَ جَالِسًا وَالنَّاسُ جُلُوسٌ قَالَ وَإِذَا دَخَلَ أَحَدُكُمُ الْمَسْجِدَ فَلَا يَجْلِسْ حَتَّى يَرْكَعَ رَكْعَتَيْنِ