Section 24A. The court, in issuing a copy of, or a certificate relating to, a decree of divorce entered by it, shall cause to be printed or written thereon the provisions of sections twenty-one and twenty-four.