Sahih al-Bukhari, Book 24, Hadith 53 (In-Book)

Narrated Ibn `Abbas: I am a witness that Allah's Messenger offered the Id prayer before delivering the sermon and then he thought that the women would not be able to hear him (because of the distance), so he went to them along with Bilal who was spreading his garment. The Prophet advised and ordered them to give in charity. So the women started giving their ornaments (in charity). (The sub-narrator Aiyub pointed towards his ears and neck meaning that they gave ornaments from those places such as earrings and necklaces.)

حَدَّثَنَا مُؤَمَّلٌ، حَدَّثَنَا إِسْمَاعِيلُ، عَنْ أَيُّوبَ، عَنْ عَطَاءِ بْنِ أَبِي رَبَاحٍ، قَالَ قَالَ ابْنُ عَبَّاسٍ ـ رضى الله عنهما ـ أَشْهَدُ عَلَى رَسُولِ اللَّهِ صلى الله عليه وسلم لَصَلَّى قَبْلَ الْخُطْبَةِ، فَرَأَى أَنَّهُ لَمْ يُسْمِعِ النِّسَاءَ، فَأَتَاهُنَّ وَمَعَهُ بِلاَلٌ نَاشِرَ ثَوْبِهِ فَوَعَظَهُنَّ، وَأَمَرَهُنَّ أَنْ يَتَصَدَّقْنَ، فَجَعَلَتِ الْمَرْأَةُ تُلْقِي، وَأَشَارَ أَيُّوبُ إِلَى أُذُنِهِ وَإِلَى حَلْقِهِ‏.‏

sunnah.com