All perfect praise be to Allaah, The Lord of the Worlds. I testify that there is none worthy of worship except Allaah, and that Muhammad is His slave and Messenger.
We have already issued Fatwa 84474 clarifying that it is forbidden to shave the beard and that it is an obligation to let it to grow freely.
Therefore, it is an obligation to let the beard to grow and not to shave it, and it is known that making a vow about something which is already an obligation is not valid according to the view of the majority of the scholars because making a vow is obliging oneself to do something, and it is not acceptable in principle to make a vow to fulfil an obligation.
Therefore, if you made a vow to keep your beard grow, your vow is not valid because it is already an obligation to let the beard grow, and it is not permissible for you to shave it or trim it if it is less than a fist's length, as this is against the order of the Prophet to let it grow.
However, some jurists are of the view that making a vow about something which is already an obligation is effective, and the one who does not fulfil his vow is obliged to expiate for breaking his vow. For more benefit on expiating for breaking a vow, please refer to Fatwa 82101.