You're likely thinking of the trial of Tom Robinson in Harper Lee's novel "To Kill a Mockingbird." In the novel, the children, Scout, Jem, and Dill, attend Tom Robinson's trial with
Calpurnia, the Finch family's housekeeper.
They sit in the "colored balcony" of the courtroom, which is a segregated section reserved for Black people. This emphasizes the racial injustice of the time and the power dynamics at play.