quick question: what was the civil war incident where Federals asked rebels whether they should surrender?

Aug 2008
I remember from Gary Gallagher's Civil War TGC/TTC course that there was an incident where a group of Federals were hold up somewhere and their commander was too green to know what to do. So the Federal commander asked the rebel commander whether he should surrender. And the rebel commander said he didn't know because he didn't know his situation. So the Federal commander told him his situation and asked again, should I surrender? And the rebel commander said yes, and so he did. lol

Can you guys point me to the details of this incident? I.e., where/when was it, and who were the commanders.