The Messenger of Allah ﷺ led us in a prayer, then said, "Stay where you are, remain seated."He then approached the men and said, "Allah commands me to instruct you to fear Allah Almighty and to speak words that are upright and just."Then he made his way through to the women and said to them, "Allah
commands me to instruct you to fear Allah and to speak words that are upright and just."He then returned to the men and said, "When you enter the mosques and marketplaces of the Muslims while carrying arrows, hold them by their tips so that you do not strike anyone with them, harming or wounding him."
حدثنا عبد الصمد حدثنا يزيد يعني ابن إبراهيم أخبرنا ليث عن أبي بردة
صلى بنا رسول الله ﷺ صلاة ثم قال على مكانكم اثبتوا ثم أتى الرجال فقال إن الله عز وجل يأمرني أن آمركم أن تتقوا الله تعالى وأن تقولوا قولا سديدا ثم تخلل إلى النساء فقال لهن إن الله عز وجل يأمرني أن آمركن أن تتقوا الله وأن تقولوا قولا سديدا قال ثم رجع حتى أتى الرجال فقال إذا دخلتم مساجد المسلمين وأسواقهم ومعكم النبل فخذوا بنصولها لا تصيبوا بها أحدا فتؤذوه أو تجرحوه
Its isnad is sahih. It is found in Bukhari 1/546, no. 451, Muslim 4/2081, no. 2614, and Abdul-Razzaq 1/444, no. 1735.