Is this the way we are to worship?

Solomon warns us not to “offer the sacrifice of fools who do not know they do wrong? How and why would fools worship wrong to begin with? And what way are we to be worshiping God?