They praised the Lord and gave thanks to him according to the instructions handed down from the time of King David.