It is stated that every action has a equal and and opoosite direction so if a body is at rest and there there is no net externel force acting on it so there are any other force acting on the body like frictional is the force acts when only a body is in motion