Try this on for size. Jefferson wrote and Madison proposed a law criminalizing the breaking of the Sabbath in Virginia.
It's never that easy.
And BTW, the law passed.
Back then, the 1st amendment applied only to the Federal government. It was also passed relatively early in Madison's career; he became far more devoted to separation of church and state later on.
And besides, it doesn't mean that the quote included in the original post is any less bogus.