To dream of apologizing to someone represents regret. You may have done said or done something that you wish you hadn’t. Apologizing may also represent premature or unprepared attempts to solve a problem. You’ve realized that an obstacle is more difficult than you first believed. Feelings of embarrassment or failure.
To dream that someone is apologizing to you represents restitution or vindication. Something wrong is being set right. A problem that has been bothering you may have finally been corrected.
Alternatively, apologizing may represent realization of the truth and forgiveness. Letting go of past grudges.