Deuteronomy 30:20shama
by loving the Lord your God, by obeying His voice, and by holding fast to Him; for this is your life and the length of your days, that you may live in the land which the Lord swore to your fathers, to Abraham, Isaac, and Jacob, to give them."
Obeying God's voice is tied to loving him and to life.
Daniel 9:11shama
"Indeed all Israel has transgressed Your law and turned aside, not obeying Your voice; so the curse has been poured out on us, along with the oath which is written in the law of Moses the servant of God, for we have sinned against Him.
Daniel confesses Israel's not obeying God's voice brought the curse.