1)
What is the connection of the two halves of the verse?
1.
Radak, Malbim: See that with all my affliction, I did not forget Your Torah. Malbim - anyone who fulfills Torah amidst poverty, in the end he will fulfill it amidst wealth (Avos 4:9).