Is this sentence ok?
I went to the gym for training this morning and bought two pairs of trousers on my way back home. As (Since) I didn't have any money in my wallet, I had withdrawn some money from a cash dispenser to buy the trousers.
I went to the gym for training this morning and bought two pairs of trousers on my way back home. As (Since) I didn't have any money in my wallet, I had withdrawn some money from a cash dispenser to buy the trousers.