I can’t find a citation, but I found a few people who quoted this. I know it’s in the teachings somehow because I’ve heard similar sentiments. But, don’t trust me, think for yourself, that’s the point.
“Believe nothing, no matter who has said it, not even if I have said it, unless it agrees with your own reason and own common sense.” --Buddha