It is thought to be written by the prophet Habakkuk , and was probably composed in the late 7th century BC . It is attributed to the prophet Habakkuk , and was probably composed in the late 7th century BCE .