Inappropriate Staring at the Opposite Gender
The basis for the prohibition of staring at the opposite gender inappropriately is the pasuk "ולא תתורו אחרי לבבכם ואחרי עיניכם אשר אתם זונים אחריהם. למען תזכרו ועשיתם את כל מצותי והייתם קדושים לאלהיכם" Chazal understand it to mean that one's eyes shouldn't gaze at inappropriately dressed women because it leads to sin.
Staring at a Woman
- It is forbidden to stare at any part of a woman's body, even her pinky, if one intends to derive pleasure from looking at it.
- It is permitted to stare at one's wife even when she's a Niddah even if it brings one's pleasure (nonetheless, it in some contexts it is still totally inappropriate). Nonetheless one may not look at certain parts of one's wife.
- For purposes of marriage, it is permitted and proper to look at one's intended wife before marrying her. 
- Bamidbar 15:39
- Sifrei Bamidbar 115, Nedarim 20a
- Brachot 24a, Rambam (Isurei Biyah 21:2), Shulchan Aruch EH 21:1. The Bet Shmuel 21:2 writes that it is Biblically forbidden according to the Rabbenu Yonah (Igeret HaTeshuva 19, cited by Bet Yosef 21:2) and rabbinically forbidden according to the Rambam. Either way, having inappropriate thoughts (Hirhur) about such a woman is Biblically forbidden.
- Rambam Issurei Biyah 21:4
- Nedarim 20a, Raavad (Issurei Biyah 21:4)
- Kiddushin 41a, Rambam Ishut 3:19, Shulchan Aruch EH 21:3. See Yaavetz (Shabbat 53b) who says that for a very modest person it is permitted to get married without seeing one's intended wife.