The early diagnosis and effective prognostic treatment measures for lung cancer are still limited, leading to a 5-year survival rate of less than 15% for these patients. Smoking is one of the causes of lung cancer, but it is not the initial carcinogenic factor. It is not clear what specific mechanism cigarette induces lung cancer, and there is a lack of research on the relationship between related genes and the prognosis of patients with smoking lung cancer. The objective of this study was to provide new theoretical evidence and potential therapeutic targets for the mechanisms of smoking-related lung cancer formation. The gene expression profile data from the GSE12428 dataset which includes 63 lung cancer and normal tissue pairs were downloaded from the Gene Expression Omnibus (GEO) database, and data from smokers with lung cancer [both lung adenocarcinoma (LUAD) and lung squamous cell carcinoma (LUSC)] from The Cancer Genome Atlas (TCGA) database were analyzed. The differential genes in smokers with lung cancer were screened using the linear model for microarray data via R software. The differential gene enrichment analysis was performed using the online analysis software Database for Annotation, Visualization and Integrated Discovery (DAVID). The expression levels of differential genes and their correlation with patient tumor clinical stage were analyzed using gene expression profiling interactive analysis (GEPIA). The overall survival rate was analyzed using Kaplan-Meier curves. In the GSE12428 dataset, 225 upregulated genes and 565 downregulated genes were identified in cancer tissues; based on smoking status, 1 upregulated gene and 4 downregulated genes were identified. Among smokers who also had lung cancer, 4 genes were downregulated, namely CSH1, BPIFA1, SLPI, and SCGB3A1. Gene Ontology (GO) and Kyoto Encyclopedia of Genes and Genomes (KEGG) pathway enrichment analysis revealed that these genes were mainly associated with biological functions such as antibacterial response, humoral immune response, and response to external stimuli. Among them, BPIFA1, SLPI, and SCGB3A1 expression was decreased in lung cancer tissues, with SCGB3A1 showing significant differences. Additionally, high expression of SCGB3A1 was associated with favorable prognosis in patients with lung cancer. Three genes BPIFA1, SLPI and SCGB3A1, were identified as being associated with smokers with lung cancer, with SCGB3A1 showing a close correlation with patient prognosis. These findings provide potential new targets for the treatment of lung cancer. Certainly, this study needs to more investigate the mechanism of these genes regulation.