وَخُذْ بِيَدِكَ ضِغْثًا فَاضْرِب بِّهِ وَلَا تَحْنَثْ
And take in your hand a bundle of thin grass and strike therewith (your wife), and break not your oath.
Ayub, peace be upon him, got angry with his wife and was upset about something she had done, so he swore an oath that if Allah healed him, he would strike her with one hundred blows. When Allah healed him, how could her service, mercy, compassion and kindness be repaid with a beating? So Allah showed him a way out, which was to take a bundle of thin grass, with one hundred stems, and hit her with it once. Thus he fulfilled his oath and avoided breaking his vow. This was the solution and way out for one who had Taqwa of Allah and turned to Him in repentance.
Allah says;
إِنَّا وَجَدْنَاهُ صَابِرًا نِعْمَ الْعَبْدُ إِنَّهُ أَوَّابٌ
Truly, We found him patient. How excellent a servant! Verily, he was ever oft-returning in repentance (to Us)!
Allah praised and commanded him, saying,
نِعْمَ الْعَبْدُ إِنَّهُ أَوَّابٌ
(How excellent a servant! Verily, he was ever oft-returning in repentance (to Us)!)
Allah says;
وَمَن يَتَّقِ اللَّهَ يَجْعَل لَّهُ مَخْرَجًا
وَيَرْزُقْهُ مِنْ حَيْثُ لَا يَحْتَسِبُ وَمَن يَتَوَكَّلْ عَلَى اللَّهِ فَهُوَ حَسْبُهُ
إِنَّ اللَّهَ بَالِغُ أَمْرِهِ قَدْ جَعَلَ اللَّهُ لِكُلِّ شَيْءٍ قَدْرًا
And whosoever has Taqwa of Allah, He will make a way for him to get out (from every difficulty). And He will provide him from (sources) he never could imagine. And whosoever puts his trust in Allah, then He will suffice him. Verily, Allah will accomplish his purpose. Indeed Allah has set a measure for all things. (65;2-3