Vayeshev 5768: Reuven's Sin and the Sale of Yosef

The fact that during Yosef's sale, Reuven is absent because he is repenting for his sin of moving Yaakov's bed indicates a connection between the 2. What is the intrinsic connection?