Is there scriptural evidence, from the Tanakh (not Talmud) that humor is an attribute of G-d? If so, can a chapter or verse be cited?
Jewish action deals with the question Does God Have a Sense of Humor? and says that humor is an essential part of the Talmud. Rabbi Hershel Schachter (Nefesh HaRav, p. 69) cites Rabbi Joseph B. Soloveitchik as suggesting that the statement is important for the mitzvah of vihalachta biderachav (following in God’s ways)
we are told approvingly that Rabbah, prior to beginning his lecture, would open with a milta dibidichuta, a humorous remark. As a result, his students, notably described as “rabanan” (which would counter the notion that such a method is only necessary or appropriate for children) had their “hearts opened” to learning. The Talmud practices as it preaches. It is related that Rabbi Aryeh Kaplan was once asked if there are any jokes in the Talmud, and his response was, “yes, but they’re all old.”
A cursory reading of the Talmud’s text validates that assertion. An informed reading may yield that jokes are not only present in the Talmud, but abundant. The Talmud’s pun in reference to bedikat chametz (Pesachim 9b) is well-known; finely-tuned eyes have uncovered many more, as documented in an extensive article in the Bar-Ilan journal Badad. (Binyamin Engleman, “Humor Mutzhar, Galuy vi-Samuy bi-Talmud Bavli,” Badad, vol. VIII (winter 5759)). As the author of that article, Binyamin Engleman, notes, the message is twofold: that the sages of the Talmud were capable of joking and, more significantly, that these jokes were worthy of memorializing in the Talmud itself (as he puts it, “jokes with a hechsher”).