2 Samuel 12:22tsum
David said, "While the baby was still alive, I fasted, and I cried. I thought, 'Who knows? Maybe the Lord will feel sorry for me and let the baby live.'
David explains he fasted hoping God would spare his child.
Isaiah 58:3tsom
They say, 'To honor you we had special days when we fasted, but you didn't see. We humbled ourselves to honor you, but you didn't notice.'" But the Lord says, "You do what pleases yourselves on these special days, and you are unfair to your workers.
God rejects fasting paired with selfishness and unfairness to workers.