PHOENIX (AP) — Yasmany Tomas singled home Chris Owings with two outs in the ninth inning and the Arizona Diamondbacks rallied to give the Chicago Cubs their first loss of the season, 3-2 on Friday night.

Welington Castillo singled off ex-Diamondbacks starter Trevor Cahill (0-1) and Owings, the pinch runner, took second on a groundout. Tomas singled to left and Owings raced home well ahead of the throw.

READ MORE: Crews Working To Open Valve Believed To Be Cause Of Dixmoor's Weeklong Water Woes

Jean Segura had three hits, including two doubles, to become the first Diamondbacks player to open a season with five multihit games. Paul Goldschmidt singled Segura home twice, the second time off Pedro Strop to tie it at 2 with two outs in the eighth.

READ MORE: Mayor Lori Lightfoot's $16.7 Billion Budget Plan On Track For Approval Next Week After Second Key Committee Vote

Brad Ziegler (1-0) pitched a perfect ninth for the victory.

MORE NEWS: Chicago Department Of Public Health To Begin Offering Free Pfizer And Johnson & Johnson Booster Shots Next Week

(© 2016 by STATS LLC and Associated Press. Any commercial use or distribution without the express written consent of STATS LLC and Associated Press is strictly prohibited.)