An in-seam pocket
Cut the pocket bags from a firm cotton if the fashion cloth is heavy or frays. Sew one bag to each seam allowance, right sides together, then sew the bags together. When you sew the garment seam, stop and restart at the pocket marks, with the bags out of the way.
Backstitch or bartack at the top and bottom of the opening. That is where a pocket tears. Clip the seam allowance only if the pattern says the pocket must turn. A clip in the wrong place opens the fashion cloth.
If the pocket shows a gap on the outside, the bags were not pressed towards the front, or one bag is shorter. Press both bags the same way and check the opening lies closed when the garment hangs.