God in OT enters in agreements with his people (aka covenants). Some of those covenants were conditional (Moses, Abraham) whereas others have no condition linked to the blessing (David 2Sam 7).
Lot's daughter was brutally raped and killed, his wife turned into a pillar of salt, and he himself was raped by his surviving daughters, while in the favor of God.