Hey, I believe you're talking about something called "digitalis" and it was prescribed for him by a doctor but he just administered large doses of it and he wasn't supposed to do that.
It made Van Gogh see things as if he were looking through a yellow filter (called "xanthopsia"). They say that's why you can see a dominant yellow in a lot of his works.