Absorb (e.g., from Crumbling Sanctuary or Absorb itself) is a damage-prevention effect. It prevents the next N damage that would be dealt to the permanent or player it protects. Prevention effects are applied during the damage-prevention step of combat (or whenever damage would be dealt), before any results of that damage are applied.
Infect (CR 702.90) is a replacement effect that changes how damage is dealt — creatures take -1/-1 counters instead of marked damage, and players get poison counters instead of losing life. However, infect only modifies what happens when damage is actually dealt. If that damage is prevented first, it is never 'dealt' at all, so infect never gets a chance to apply.
CR 615.1 and 616.1 establish that prevention effects are applied before replacement effects that would change the nature of damage. Since prevention stops the damage entirely, there is nothing left for infect to replace.
Concrete example: Your opponent attacks with a 3/3 creature with infect. You control Crumbling Sanctuary (absorb 3). The 3 damage that would be dealt to you is prevented by Absorb. Because 0 damage is actually dealt, you receive 0 poison counters — the infect replacement never fires.
One nuance: Absorb prevents damage up to its stated amount. If a creature with infect would deal 5 damage and your Absorb only prevents 3, the remaining 2 damage is dealt and infect applies to it, giving you 2 poison counters.
Unofficial fan resource — not affiliated with or endorsed by Wizards of the Coast. Answers are AI-generated estimates grounded in the Comprehensive Rules and are not a substitute for an official judge. Verify anything match-critical.