Why did the prophets speak against sacrifice?

They did not, they really meant God wants interior dispositions of obedience and not just external rites.