“Faith and obedience are bound up in the same bundle. He that obeys God trusts God; and he that trusts God obeys God. He that is without faith is without works; and he that is without works is without faith.”
Charles H. Spurgeon
To better undertand it read here a concise explanation of this apparent contradiction.