Valmiki Ramayana Sundara Kanda Sarga 9 Shloka 32
Original Shlokaप्रध्यायत इवापश्यत्प्रदीपांस्तत्र काञ्चनान्। धूर्तानिव महाधूतैर्देवनेन पराजितान्।।5.9.32।।
1 source checked for this shloka
महाधूर्तै: with expert gamblers, देवनेन by a game of dice, पराजिताम् defeated, धूर्तानिव like the gamblers, प्रध्यायत इव like one who is deep in thought, काञ्चनान् golden, प्रदीपान् lamps, आपश्यत् he saw.
Seeing the golden lamps that stood burning steadily, Hanuman thought they looked like gamblers in deep thought defeated by expert gamblers in a game of dice.