Praise be to Allah.
From your question it seems that you are suffering from waswaas, as you need to do things twice and you think that you said such and such or that you did not say it.
The best ways to treat waswaas are two:
1 – Do many acts of worship and remember Allaah a great deal (dhikr).
Hence we say that basically what you said to your wife is, “It is haraam for us to speak to one another if you go there”. So you should not pay any attention to any doubts that arise because of waswasah.
If a man says to his wife: “It is haraam for us to speak to one another if you go to such and such a place,” if she does not go there, then he does not have to do anything.
But if she does go there, the matter should be examined further. If he intended to divorce her, then a divorce has taken place, because these words of his come under the heading of implicit divorce.
If he did not intend to divorce her – as you say in your question – then he has to offer expiation for breaking an oath (kafaarat yameen), which is freeing a slave, or feeding or clothing ten poor persons. If that is not possible then he must fast for three days.
The basic principle concerning that is that declaring something permissible to be haraam is a kind of oath, because Allaah says (interpretation of the meaning):
“O Prophet! Why do you forbid (for yourself) that which Allaah has allowed to you, seeking to please your wives? And Allaah is Oft‑Forgiving, Most Merciful.
2. Allaah has already ordained for you (O men) the absolution from your oaths. And Allaah is your Mawlaa (Lord, or Master, or Protector) and He is the All‑Knower, the All‑Wise”
So Allaah describes declaring something permissible to be haraam as an oath.
In al-Bahr al-Raa’iq (4/317) it says: It is known that declaring something permissible to be haraam is an oath for which expiation must be offered… This includes saying “It is haraam for you to talk to me” or “talking to you is haraam”. End quote.
If a man says to his wife: “It is haraam for us to speak to one another”, and he does not say, “if you go to such and such a place,” if he intended to divorce her then divorce has taken place in this case, whether she goes there or not. But if he did not intend divorce, then he must offer expiation for breaking an oath.
If you say something or ask a question, and repeat it, you do not have to do anything, but it is important that the speech be permissible.
If your wife was pregnant when you said the words mentioned above, then the pregnancy does not affect that. What Islam forbids is divorcing a woman when she is menstruating, but if she is pregnant that does not affect the divorce, although you did not actually divorce her.
It is not permissible to work in a riba-based bank because that is cooperating in sin and transgression, and the Prophet (peace and blessings of Allaah be upon him) cursed the one who consumes riba, the one who pays it, the one who writes it down and the two who witness it, and he said: they are all the same. Narrated by Muslim (1598).
And Allaah knows best.