Sounds like a X-tard preacher said that.
Morality in Buddhism is essentially practical in that it is only a means leading to the final goal of ultimate happiness. On the Buddhist path to Emancipation, each individual is considered responsible for his own fortunes and misfortunes. Each individual is expected to work his own deliverance by his understanding and effort. Buddhist salvation is the result of one's own moral development and can neither be imposed nor granted to one by some external agent. The Buddha's mission was to enlighten men as to the nature of existence and to advise them how best to act for their own happiness and for the benefit of others. Consequently, Buddhist ethics are not founded on any commandments which men are compelled to follow. The Buddha advised men on the conditions which were most wholesome and conducive to long term benefit for self and others. Rather than addressing sinners with such words as 'shameful', 'wicked', 'wretched', 'unworthy', and 'blasphemous' He would merely say, 'You are unwise in acting in such a way since this will bring sorrow upon yourselves and others.'
As Buddhists...
We don’t believe in a god because we believe in man. We believe that each human being is precious and important, that all have the potential to develop into a Buddha – a perfected human being. We believe that human beings can outgrow ignorance and irrationality and see things as they really are. We believe that hatred, anger, spite and jealousy can be replaced by love, patience, generosity and kindness. We believe that all this is within the grasp of each person if they make the effort
Finding Truth:
In the Kalama Sutra, Buddha says.
Do not believe in anything simply because you have heard it..
Do not believe in anything simply because it is spoken and rumored by many.
Do not believe in anything simply because it is found written in your religious books.
Do not believe in anything merely on the authority of your teachers and elders.
Do not believe in traditions because they have been handed down for many generations.
But after observation and analysis, when you find that anything agrees with reason and is conducive to the good and benefit of one and all, then accept it and live up to it.