The purpose why of turning the Scriptures and praing in times of hardship would be only spiritual sanctification not happiness.
The purpose of turning to the Scriptures and praying in times of hardships is primarily for spiritual sanctification, not happiness.