During Jesus’ time of earthly ministry, the Israelites used to pay temple tax before entering the synagogue. In the context of Jesus’ spiritual understanding, it wasn’t right for God’s children to pay tax before entering the temple to worship. He knew this, but the Pharisees didn’t. Nevertheless, in order to avoid causing offence and to maintain peace, he performed a miracle, got money out of a fish’s mouth and paid the tax for himself and Peter. At that moment, Jesus valued peace more than his knowledge [Matthew 17:25-27]. Not everyone has your level of spiritual understanding. Deal wisely with people.