Do the research yourself. It was part of the German reunification treaty of 1990.
But you won’t...
No it isn’t, you are confusing an agreement about East Germany with the nations of NATO signing a treaty with the USSR to let the USSR dictate NATO’s membership and European country’s freedom to join the European alliance.
Just pull up that treaty you claim exists.