Detention

To dream that you are in after-school detention, implies that you are feeling guilty about something you have done before.