The Bible book of Job, likely composed by Moses, explains why Jehovah allowed Job to suffer and how the matter turned out for him.
خِلَالَ ٱلْفَتْرَةِ ٱلْفَاصِلَةِ بَيْنَ حَيَاةِ يُوسُفَ (‏ ٱبْنِ حَفِيدِ إِبْرَاهِيمَ )‏ وَٱلنَّبِيِّ مُوسَى ،‏ عَاشَ رَجُلٌ ٱسْمُهُ أَيُّوبُ .‏