If someone has hit another person and regrets their actions, it is important to seek forgiveness from both the individual who was harmed and from Allah. Sincere remorse, taking responsibility for one's actions, and making amends are integral to seeking forgiveness in Islam. It is recommended to apologize, compensate for any harm caused, and actively strive to avoid such behavior in the future.