Muwatta Malik, Book 31, Hadith 1308 (In-Book)

Yahya related to me from Malik that Abu'r-Rijal Muhammad ibn Abd ar-Rahman heard his mother, Amra bint Abd ar-Rahman say, "A man bought the fruit of an enclosed orchard in the time of the Messenger of Allah, may Allah bless him and grant him peace, and he tended it while staying on the land. It became clear to him that there was going to be some loss. He asked the owner of the orchard to reduce the price for him or to revoke the sale, but the owner made an oath not to do so. The mother of the buyer went to the Messenger of Allah, may Allah bless him and grant him peace, and told him about it. The Messengerof Allah, may Allah bless him and grant him peace, said, 'By this oath, he has sworn not to do good.' The owner of the orchard heard about it and went to the Messenger of Allah, may Allah bless him and grant him peace, and said, 'Messenger of Allah, the choice is his.' "

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

sunnah.com

also referenced under: Book 31, Hadith 15 (USC-MSA)