Yevamos 99: Takala of Tzadikim

When does Hashem prevent it, and does it apply in our Gemarah?