عَنْ أَبِي سَعِيدٍ الْخُدْرِيِّ قَالَ: كَانَ النَّبِيُّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ يخرج يَوْم الْفطر وَالْأَضْحَى إِلَى الْمُصَلَّى فَأَوَّلُ شَيْءٍ يَبْدَأُ بِهِ الصَّلَاةُ ثُمَّ يَنْصَرِفُ فَيَقُومُ مُقَابِلَ النَّاسِ وَالنَّاسُ جُلُوسٌ عَلَى صُفُوفِهِمْ فَيَعِظُهُمْ وَيُوصِيهِمْ وَيَأْمُرُهُمْ وَإِنْ كَانَ يُرِيدُ أَنْ يَقْطَعَ بَعْثًا قَطَعَهُ أَوْ يَأْمر بِشَيْء أَمر بِهِ ثمَّ ينْصَرف
Translation

Al-Bara’ reported God’s Messenger as saying, “If anyone sacrifices before the prayer, he is sacrificing only for himself; but if anyone sacrifices after the prayer, his rites are complete and he has correctly followed the practice of the Muslims." (Bukhari and Muslim.)