In a chemical reaction where substance A transfers electrons to substance B, substance A loses electrons and is therefore oxidized. Substance B gains those electrons and is reduced. Since substance B gains electrons, it acts as the oxidizing agent.
So, the correct statement is:
Substance B is reduced and acts as the oxidizing agent.