I stumbled across this rule:
$$\frac{\Gamma\vdash q\rightarrow p(a) }{\Gamma \vdash (q \rightarrow \forall x. p(x))}$$
where $a$ also needs to be a fresh constant, so with that in mind you could re-write the rule as the following:
$$\frac{\Gamma\vdash q\rightarrow p(a)\hspace{1cm} a\text{ is fresh}}{\Gamma \vdash (q \rightarrow \forall x. p(x))}$$.
The calculus I'm working with is a standard sequent calculus, without the weakening rules, and for the quantifier, I also have the following rule, which is very similar:
$$\frac{\Gamma\vdash p(a)\hspace{1cm} a\text{ is fresh}}{\Gamma \vdash \forall x. p(x)}\text{$\forall$R}$$.
I tried several approaches to derive the first (or second) rule without any success, is it possible to do that?