Passage
Who teacheth my hands to war, and mine arms bend a bow of brass;
Who teacheth my hands to war, and mine arms bend a bow of brass;
Psalms 18:32 The God who girdeth me with strength, and maketh my way perfect,
Psalms 18:33 Who maketh my feet like hinds' [feet], and setteth me upon my high places;
Psalms 18:34 Who teacheth my hands to war, and mine arms bend a bow of brass;
Psalms 18:35 And thou didst give me the shield of thy salvation, and thy right hand held me up; and thy condescending gentleness hath made me great.
Psalms 18:36 Thou didst enlarge my steps under me, and mine ankles have not wavered.
The verse centers on "teacheth", "hands", "mine", "arms", "bend", and "brass". It is saying that the verse draws attention to "teacheth" and "hands", so its meaning should be read from those terms before moving to application.
The nearby context moves from verse 33's "Who maketh my feet like hinds' feet..." into verse 35's "And thou didst give me the shield...", so "teacheth" and "hands" belong inside that flow. In Psalms context, the local focus is worship, trust, the LORD's kingship, and covenant mercy.
A plain takeaway is to answer the verse's own emphasis on "teacheth" and "hands" with trust shaped by these words, not by a vague optimism outside the passage.