Formation of a terminating hairpin in prokaryotic Rho-independent transcriptional termination. The NusA protein interacts with the nascent hairpin structure and the RNA polymerase to stimulate release of the transcript.