The SH2 domain of Grb2 binds to phosphorylated tyrosine-containing peptides on receptors or scaffold proteins with a preference for pY-X-N-X, where X is generally a hydrophobic residue such as valine (see [http://sh2domain.org]).
The N-terminal SH3 domain binds to proline-rich peptides and can bind to the Ras-guanine exchange factor SOS.
The C-terminal SH3 domain binds to peptides conforming to a P-X-I/L/V/-D/N-R-X-X-K-P motif that allows it to specifically bind to proteins such as Gab-1.