Islam teaches us that this life is a life of worship. We are placed on this earth in order to worship Allah and obey His command. During this earthly life we are subjected to a series of trials. We have the option of enduring these trials and conforming to certain laws, and our reward will be great in the next life, or we may decline to endure these trials and choose to not conform to the law, then we will be made to regret it in the next life.