Secure the button before tightening

Thread the needle, knot the end, and bring it up through the fabric under the button. Go up and down through a pair of holes several times. If the garment fabric is thick, lay a spare needle across the button and pass the stitches over it to leave a little space. If there are four holes, stitch the second pair too.

Finish and test the fit

Take away the spacer. Bring the needle between the button and the fabric and wrap the thread around the loose stitches beneath the button to form a short thread shank. Take the needle to the back and knot the thread against the fabric. Try the button through the hole before trimming the thread close.