Hadith 10:1360
Abu Bakr narrated to us, he said: Jarir narrated to us, from Mughira, from Hammad, who said: If a man says to his wife, "You are divorced if you enter the house of so-and-so," and she enters part of her body [into it], then the divorce has taken effect upon her.
حدثنا أبو بكر قال نا جرير عن مغيرة عن حماد قال إذا قال الرجل لأمرأته أنت طالق إن دخلت بيت فلان فأدخلت بعض جسدها فقد وقع الطلاق عليها