Very good question.
I do not know of anywhere prior to the "New Testament" of the tradition of baptism being used. However various Jewish and Samaritan sects had ritual washing traditions for purity.
Shalom brethren in Yeshua, please check this below link for the answer to your question. Shalom and blessings 🙏