We took the oath of allegiance to Messenger of Allah ﷺ and he recited to us: 'They will not associate anything in worship with Allah,' and forbade us to bewail the dead. Thereupon a lady withdrew her hand (refrained from taking the oath of allegiance), and said, "But such-and-such lady lamented over one of my relatives, so I must reward (do the same over the dead relatives of) hers." The Prophet ﷺ did not object to that, so she went (there) and returned to the Prophet ﷺ so he accepted her pledge of allegiance. (Using translation from Bukhārī 4892)
بَايَعْنَا رَسُولَ اللهِ ﷺ فَقَرَأَ عَلَيْنَا {أَنْ لَا يُشْرِكْنَ بِاللهِ شَيْئًا} [الممتحنة 12] وَنَهَانَا عَنِ النِّيَاحَةِ فَقَبَضَتِ امْرَأَةٌ يَدَهَا قَالَتْ أَسْعَدَتْنِي فُلَانَةٌ أُرِيدُ أَنْ أَجْزِيَهَا فَمَا قَالَ لَهَا النَّبِيُّ ﷺ شَيْئًا فَانْطَلَقَتْ فَرَجَعَتْ فَبَايَعَهَا