# In my distress
"In my great trouble"
# he heard my voice from his temple
David is referring to the heavenly temple where Yahweh dwells. The earthly temple has not yet been built.
# his ears
David speaks of Yahweh as if he had ears.