“I shall be merciful and forgive you this time if you beg forgiveness ______ this gentleman here.”

“I shall be merciful and forgive you this time if you beg forgiveness ______ this gentleman here.”

Explanation

The correct phrase is "beg forgiveness of someone", meaning to ask that person for pardon.

So, "beg forgiveness of this gentleman" is grammatically correct and idiomatic.