Strictly speaking, if you would have given it to him at the time he asked, it should be (A). If he had already asked, and you would have given it to him some time after this, it should be (B). In practice most people probably would not strongly differentiate between those two, and might use (A) just for simplicity.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.
Anonymous which one you think is betterA. There's nothing in the context that indicates anything that qualifies as a flashback to a preceding time frame. Something was asked for, and it was not given. This is just a normal sequence of events.