Ahmed was called up by the Padres on Sunday.
Ahmed signed a minor-league contract with the Padres on Sunday.
Ahmed elected free agency Thursday, Eric Stephen of SBNation.com reports.
Ahmed was designated for assignment by Los Angeles on Monday, David Vassegh of AM 570 LA Sports reports.
Ahmed is out of the lineup for Sunday's game against the Pirates.
Ahmed signed a contract with the Dodgers on Wednesday, Fabian Ardaya of The Athletic reports.
The Giants released Ahmed on Wednesday.
The Giants designated Ahmed for assignment Tuesday, Maria I. Guardado of MLB.com reports.
Ahmed will start at shortstop and bat eighth in Sunday's game against the Dodgers.
Ahmed is out of the lineup for Monday's game against the Cubs.