When G-d finished speaking with Moses on Mount Sinai, He gave him the two Tablets of the Testimony.
G-d gave Moses the tablets on the 40th day of his stay on the mountain. But the people had already made the Golden Calf on the 39th day! In other words, even after the people had committed this most heinous sin, G-d continued to teach the Torah to Moses, and even gave him the tablets in order to transmit the Torah to all the Jewish people.
Similarly, we should always see people in their best light, encouraging them to study the Torah and fulfill G-d's commandments even if their actions seem to contradict G-d's wishes.