Two women were sewing leather together in a house, or in a room, when one of them came out with an awl driven through her hand. She accused the other woman of injuring her, and the case was brought before Ibn Abbas.Ibn Abbas said, "The Messenger of Allah ﷺ said, 'If people were granted whatever they claimed, men would lose their lives and their wealth. Remind her of Allah and recite to her, 'Indeed, those who exchange the covenant of Allah' [Al Imran 3:77].'"So they reminded her, and she confessed.Then Ibn Abbas said, "The Prophet ﷺ said, 'The oath is upon the one against whom the claim is made.'"
أن امرأتين كانتا تخرزان في بيت- أو في الحجرة فخرجت إحداهما وقد أنفذ بإشفى في كفها، فادعت على الأخرى، فرفع إلى ابن عباس، فقال ابن عباس: قال رسول الله ﷺ: لو يعطى الناس بدعواهم لذهب دماء قوم وأموالهم ذكروها بالله واقرؤوا عليها {إن الذين يشترون بعهد الله} [آل عمران: ٧٧] فذكروها فاعترفت، فقال ابن عباس: قال النبي ﷺ: اليمين على المدعى عليه.
Bukhari narrated it in the tafsir (4552), and Muslim in the judgments (1:177), both through the route of Ibn Abu Mulayka, as mentioned. The wording given here is Bukhari's, and Muslim's version does not include the story of the two women. His saying, "bi-ishfa," with a kasra on the hamza and shortened, refers to the awl used for stitching leather.