Haggadah-Dayeinu-Breslav
The Breslaver taught that King David advises us how to pray amid the torment of pain and anxiety. He says, “To You will I bring a thanksgiving offering and then I shall call upon the name of God (Psalms 116:17).” In other words, it behooves us to thank God for the benefits which we have previously received. After we have done this we will discover that we are able to pray for relief from our present tribulations. (Hishtapchut HaNefesh 5a)