Mainstream biblical scholars and historians state that the doctrine of the Trinity is never explicitly laid out as a formal dogma anywhere in the text of the Old or New Testaments.
While the New Testament contains early triadic formulas (such as the baptismal command in Matthew 28:19 and apostolic blessings in 2 Corinthians 13:14), the actual systemic theology of a three-in-one God was developed later by early church fathers over centuries. Christian theologians argue that the doctrine is implicitly woven throughout the scriptures, while critics and Islamic scholars point to the lack of clear, direct scriptural definitions to argue it was a later modification of strict biblical monotheism.