Shulchan Arukh, Yoreh De'ah Siman 332
Can copy this into an AI, or connect the whole library to your assistant. For deeper learning, you can directly use the original seforim, sites, and apps.
דין מתנות עניים. ובו סעיף אחד
לקט שכחה ופאה אם אין עניי ישראל מצוים שם ליטלם אין צריך להניחם: הגה והאידנא אין נוהגין בהם לפי שהרוב עובדי כוכבים ואם יניחום יבואו עובדי כוכבים ויטלום: (טור):