You might be praising God with your spirit. But a person there without understanding cannot say “Amen” to your prayer of thanks. He does not know what you are saying.