Right standing before God is necessary prior to baptism. Baptism is for believers: “He that believeth and is baptized shall be saved; but he that believeth not shall be damned.” Obedience releases and activates faith. Faith is demonstrated through baptism. No unbeliever should be baptized.
When a person trusts the cross, they are ready to come out of “Egypt” — a type of the world. The Red Sea separated God's people from Egypt; they were delivered through the Red Sea, a type of water baptism. Without faith, nothing happens in baptism; with faith, the believer rises to walk in newness of life.
Baptism aligns us with the headship of the Lord Jesus Christ. Baptism is a circumcision of the heart. Abraham was justified before circumcision; circumcision deals with verification, validation, and authenticity of the faith that was already there. Baptism is a seal of the righteousness of my faith. It also cuts the enmity of the old nature of sin — it cuts away something from the heart. It deals with deliverance.
Baptism identifies us with Christ in His death. What the believer has just been delivered from — the old man — is buried, crucified, put away. “His” life is over. The believer should no longer serve sin but seek God's plans and purposes. When a believer is baptized, it is a death to themselves and a resurrection to Christ through them.
Baptism should be received, just as Abraham received the sign of circumcision — a seal of righteousness. A believer should be baptized in the name (person, character, nature) of Jesus. To be baptized is to be immersed into Jesus. Jesus is the fullness of the Godhead bodily. If a person believes and confesses, they need to be instructed about baptism.