Allah (swt) tested these 3 men from the children of Israel