26 ER stress-related DEGs were screened. Functional enrichment analysis showed them to be involved in the regulation of the endoplasmic reticulum mainly. NUPR1 and TRIB3 were identified as the most significant prognostic-related genes by comparison with the GSE10846, GSE11318, and TCGA datasets. NUPR1 was correlated with a good prognosis and immune infiltration in DLBCL; on the other hand, high expression of TRIB3 significantly correlated with a poor prognosis, which was an independent prognostic factor for DLBCL. This evidence concerns the gene TRIB3 and diffuse large B-cell lymphoma.