Bulugh al-Maram 492
وَعَنْهُ قَالَ: كَانَ رَسُولُ اللَّهِ - صلى الله عليه وسلم - يَخْرُجُ يَوْمَ الْفِطْرِ وَالْأَضْحَى إِلَى الْمُصَلَّى, وَأَوَّلُ شَيْءٍ يَبْدَأُ بِهِ الصَّلَاةُ, ثُمَّ يَنْصَرِفُ فَيَقُومُ مُقَابِلَ النَّاسِ - وَالنَّاسُ عَلَى صُفُوفِهِمْ - فَيَعِظُهُمْ وَيَأْمُرُهُمْ. مُتَّفَقٌ عَلَيْهِ.
He also said: The Messenger of Allah ﷺ would go out on the day of al-Fitr and al-Adha to the place of prayer. The first thing he would begin with was the prayer. Then he would turn and stand facing the people, while the people were in their rows, and he would admonish them and give them commands. Agreed upon.