Ubayd bin Umayr reported,

Umar رضي الله عنه once said to the companions of the Prophet ﷺ, "What do you think this verse was revealed about? 'Would any of you wish to have a garden...'"They replied, "Allah knows best."Umar became angry and said, "Say either 'we know' or 'we do not know.'"Ibn Abbas said, "I have something in mind about it, Commander of the Faithful."Umar said, "Nephew, speak up and do not belittle yourself."Ibn Abbas said, "It is a parable struck for a deed."Umar asked, "What deed?"Ibn Abbas replied, "For a deed."Umar said, "For a wealthy man who performs deeds in obedience to Allah عز وجل, then Allah sends Satan to him and he commits acts of disobedience until they drown all his deeds."

Bukhari 4538

Sahih

حدثنا إبراهيم أخبرنا هشام عن ابن جريج سمعت عبد الله بن أبي مليكة يحدث عن ابن عباس قال وسمعت أخاه أبا بكر بن أبي مليكة يحدث

عن عبيد بن عمير قال

قال عمر رضي الله عنه يوما لأصحاب النبي ﷺ فيم ترون هذه الآية نزلت {أيود أحدكم أن تكون له جنة} قالوا الله أعلم فغضب عمر فقال قولوا نعلم أو لا نعلم فقال ابن عباس في نفسي منها شيء يا أمير المؤمنين قال عمر يا ابن أخي قل ولا تحقر نفسك قال ابن عباس ضربت مثلا لعمل قال عمر أي عمل قال ابن عباس لعمل قال عمر لرجل غني يعمل بطاعة الله عز وجل ثم بعث الله له الشيطان فعمل بالمعاصي حتى أغرق أعماله

البخاري 4538صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Tafsir
Chapter
His saying, "Would one of you wish to have a garden" to His saying, "that you might give thought"
Numbering
Darussalam 4538
Bukhari 4538