It was narrated from Ibn ‘Abbas that the Prophet ﷺ forbade wearing weapons in the Muslim lands on the two ‘Eid, except if the enemy was present.
أَنَّ النَّبِيَّ ﷺ نَهَى أَنْ يُلْبَسَ السِّلاَحُ فِي بِلاَدِ الإِسْلاَمِ فِي الْعِيدَيْنِ إِلاَّ أَنْ يَكُونُوا بِحَضْرَةِ الْعَدُوِّ