I have looked up Crediting OpenStreetMap maps in QGIS.
For QGIS 3.22 LTR this seems to be missing or moved somewhere else.
How do I add the copyight label for OSM data ?
I know View -> Decorations -> Copyright label.
but in the Q&A above, there is a semiautomatic way of adding it.