From late Middle High German straf, cognate with Dutch straf, with further origin uncertain. However, a semantic connection Proto-Indo-European *(s)ter(h₁)- (“to be stiff; be rigid; exert”) (whence Proto-Germanic *staraz (“stiff”)) has been proposed (DWDS).