Ibn Mas'ud (may Allah be pleased with him) said: Flogging is only for two things: either for accusing a chaste woman, or for denying a man's descent from his father.