Purana Jyotisha Sangraha · by Vyasa
Chapter 1 · Konark and Godavari Tirthas
ब्रह्मपुराणम् : गोदावरीतीरे ग्रहतीर्थानि कोणार्कश्च
यदा भार्यां न लेभेऽसौ गुरुः सर्वप्रयत्नतः ।सर्वोपायक्षये जीवस्तदा नीतिमथास्मरत् ॥ १५ ॥
From the Brahma Purana, print ch 152, verse 15.
The teacher could not get his wife back with every effort. When all means were spent, Jupiter remembered the rule of wise conduct.
Simple meaning: When all means failed, Jupiter remembered the rule of wise conduct.
अपमानं पुरस्कृत्य मानं कृत्वा तु पृष्ठतः ।
A wise person bears insult to reach his aim. Losing the aim is a mistake.
साध्यं केनाप्युपायेन जानद्भिः पुरुषैः फलम् ।
Knowing people reach goals by some means. Needless pride soon brings grief.
एवं निश्चित्य मेधावी शुक्रं गत्वा न्यवेदयत् ।
Jupiter went to Venus and told him. Venus greeted him with honour.