Unless you have a specific allergy or skin sensitivity to any of the components in your rosemary oil, it should be safe to leave it in your beard overnight. If properly diluted, this oil is generally gentle on your skin and leaving it on for longer gives it time to be absorbed into your skin. Just remember to wash your beard regularly to avoid buildup or a greasy look.