Sunan Ibn Majah, Book 5, Hadith 512 (Ibn Majah 1314)

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.