Numbers 6:5-6
6:5 “‘All the days of the vow of his separation no razor may be used on his head until the time is fulfilled for which he separated himself to the Lord. He will be holy, and he must let the locks of hair on his head grow long.
6:6 “‘All the days that he separates himself to the Lord he must not contact a dead body.