Proverbs 6: 30 - 35 shows that whereas people may sympathize with a thief who steals because he is hungry, they despise an adulterer because he has a bad motive.
وَهذَا مَا يَنْبَغِي أَنْ يَدْفَعَ ٱلْمَرْءَ إِلَى تَجَنُّبِ هذَا ٱلْعَمَلِ ٱلَّذِي يَنِمُّ عَنْ أَنَانِيَّةٍ مُطْلَقَةٍ .‏