prior engagement; previous appointment
Refers to a social or business appointment made earlier, often used when declining a new invitation.
Unfortunately I have a prior engagement and cannot attend this time.
prior agreement; previous promise; previous contract
Refers to a formal or informal agreement, promise, or contract made earlier. Often used in business or legal contexts.
We have a prior agreement, so we cannot accept those terms.