There is literature on the topic you mentioned. You can see some of these references:
Gustavson K, Ystrom E, Stoltenberg C, Susser E, Surén P, Magnus P, Knudsen GP, Smith GD, Langley K, Rutter M, Aase H, Reichborn-Kjennerud T. Smoking in Pregnancy and Child ADHD. Pediatrics. 2017 Feb;139(2):e20162509. doi: 10.1542/peds.2016-2509
Sciberras E, Mulraney M, Silva D, Coghill D. Prenatal Risk Factors and the Etiology of ADHD-Review of Existing Evidence. Curr Psychiatry Rep. 2017 Jan;19(1):1. doi: 10.1007/s11920-017-0753-2
Kian N, Samieefar N, Rezaei N. Prenatal risk factors and genetic causes of ADHD in children. World J Pediatr. 2022 May;18(5):308-319. doi: 10.1007/s12519-022-00524-6. Epub 2022 Mar 2. PMID: 35235183
Montagna A, Karolis V, Batalle D, Counsell S, Rutherford M, Arulkumaran S, Happe F, Edwards D, Nosarti C. ADHD symptoms and their neurodevelopmental correlates in children born very preterm. PLoS One. 2020 Mar 3;15(3):e0224343. doi: 10.1371/journal.pone.0224343
Askeland R, Hannigan LJ, Corfield E, Øyen AS, Andreassen OA, Tilling K, Davey Smith G, Thapar A, Reichborn-Kjennerud T, Stergiakouli E. Associations Between Pregnancy-Related Predisposing Factors for Offspring Neurodevelopmental Conditions and Parental Genetic Liability to Attention-Deficit/Hyperactivity Disorder, Autism, and Schizophrenia: The Norwegian Mother, Father and Child Cohort Study (MoBa). JAMA Psychiatry. 2022 Aug 1;79(8):799-810. doi: 10.1001/jamapsychiatry.2022.1728