It is narrated from Ibn Umar (may Allah be pleased with him) that he divorced his wife in the house of Hafsa (may Allah be pleased with her), and his way to the mosque used to pass by there. After that, he would go to the mosque by another route from behind the houses, disliking that perhaps he might come across her. This continued until he took his wife back.
Hadith Referenceمسند الإمام الشافعي / كتاب الرجعة / 1284
Hadith Takhrijاسناده صحيح اخرجه البيهقي 7/372 - وفي المعرفة السنن والآثار له (4503) - وعبد الرزاق (11024)۔