It is found that the NMR relaxation rates of diffusants in peptide hydrogels have a linear dependency on the shear modulus of the hydrogels. This finding opens the door for non-invasive and forceless mechanical characterizations of materials and tissues using NMR and MRI.