ashamed

Definition

Feeling regret, guilt, or embarrassment about something, often due to its foolishness or inappropriateness.

Example

"He felt ashamed of his behavior and vowed to change his ways."