Does God send us adversity to teach us a lesson?

The short answer is 'no'.

The long answer is here.