You're likely recalling Bill Cosby's famous "Pudding Pops" / refrigerator routine from his stand-up specials (e.g., Himself, 1983). He humorously narrates discovering forgotten, bizarre, or expired items in his fridge, turning mundane domestic observation into signature storytelling.
Other comedians with notable fridge/food bits: Jerry Seinfeld (observational food humor), Jim Gaffigan (Hot Pockets, bacon), John Mulaney (ice cream, diner food). But Cosby's is the classic "long ago" reference.