WLC Q.183: For whom are we to pray?
We are to pray for the whole church of Christ upon earth; (Eph. 6:18, Ps. 28:9) for magistrates, (1 Tim. 2:1–2) and ministers; (Col. 4:3) for ourselves, (Gen. 32:11) our brethren, (James 5:16) yea, our enemies; (Matt. 5:44) and for all sorts of men living, (1 Tim. 2:1–2) or that shall live hereafter; (John 17:20, 2 Sam. 7:29) but not for the dead, (2 Sam. 12:21–23) nor for those that are known to have sinned the sin unto death. (1 John 5:16)
WCF 21.4.
Prayer is to be made for things lawful; (1 John 5:14) and for all sorts of men living, or that shall live hereafter: (1 Tim. 2:1–2, John 17:20, 2 Sam. 7:29, Ruth 4:12) but not for the dead, (2 Sam. 12:21–23, Luke 16:25–26, Rev. 14:13) nor for those of whom it may be known that they have sinned the sin unto death. (1 John 5:16)