For any beam section, maximum bending stress always occurs at the extreme fibers (the points farthest from the neutral axis).
For asymmetric sections like a T-beam, you must first determine the location of the neutral axis (centroid) to identify which fiber (top or bottom) is farthest away.