The Prophet ﷺ said, "Whoever eats from this tree should not come to the mosques."
حدثنا يحيى عن عبيد الله عن نافع
عن النبي ﷺ قال من أكل من هذه الشجرة فلا يأتين المساجد
Its isnad is sahih, and it is an abridgment of 4619.