This is all down to karma.
"The body is the field of karma in this age; whatever you plant, you shall harvest." - SGGS p78
I would not call this bargaining with God, i belive the reason you have been granted what you wished for is due to some previous positive actions or deeds. E.g. Sewa...