Matthew 7:12
7 “Ask and it will be given to you; seek and you will find; knock and the door will be opened for you. 8 For everyone who asks receives, and the one who seeks finds, and to the one who knocks, the door will be opened. 9 Is there anyone among you who, if his son asks for bread, will give him a stone? 10 Or if he asks for a fish, will give him a snake? 11 If you then, although you are evil, know how to give good gifts to your children, how much more will your Father in heaven give good gifts to those who ask him! 12 In everything, treat others as you would want them to treat you, for this fulfills the law and the prophets.
2 Enoch 61:1
Secrets of Enoch1 And now, my children, guard your hearts from every injustice, which the Lord hates. Just as a person asks something for his own soul from God, so let him do to every living soul, because I know all things, how in the great time to come there is much inheritance prepared for people, good for the good, and bad for the bad, without number many. 2 Blessed are those who enter the good houses, for in the bad houses there is no peace nor return from them. 3 Hear, my children, small and great! When a person has a good thought in his heart, brings gifts from his labors before the Lord's face and his hands did not make them, then the Lord will turn away his face from the labor of his hand, and that person cannot find the labor of his hands. 4 And if his hands made it, but his heart grumbles, and his heart does not stop grumbling incessantly, he has no advantage.
Notes and References
"... Hillel, like Philo, derives the notion from the Law. A special case is 2 Enoch 61:1: 'And just as a person makes request for his own soul from God, in the same manner let him behave toward every living soul.' Although this formula lacks mutuality and identity of actions, it begins with the desires of the human heart and requests corresponding conduct toward the other. The work, however, is undatable and so full of Christian scribal glosses that it is difficult to know if it is a predecessor of Jesus' own formulation ..."
Topel, John The Tarnished Golden Rule: The Inescapable Radicalness of Christian Ethics (pp. 475-485) Theological Studies, 1998