Unhappy Marriage: Is It a Test or Punishment from Allah?

All I wanted was a stable happy relation and since my engagement things have been upside down. I’ve endured for four years and my patience is running out.